package Ġorg . step ic . d roid . json Helpers . adapters Ċ Ċ import Ġcom . google . gson . Gson Builder Ċ import Ġjunit . framework . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ import Ġorg . step ic . d roid . features . dead lines . model . Dead lines Wrapper Ċ import Ġorg . step ic . d roid . util . toObject Ċ import Ġjava . util .* Ċ Ċ class ĠUTC Date Adapter Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġde serialization Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġgson Ġ= ĠGson Builder (). register Type Adapter ( Date :: class . java , ĠUTC Date Adapter ()). create () ĊĠĠĠĠĠĠĠ Ġval Ġdead lines Ġ= Ġ""" {" course ": 6 7 ," dead lines ":[{" section ": 1 2 3 ," deadline ":" 2 0 1 2 - 0 4 - 2 3 T 1 8 : 2 5 : 4 3 . 0 0 0 Z "}]} """ ĊĊĠĠĠĠĠĠĠ Ġval Ġwrapper Ġ= Ġdead lines . toObject < Dead lines Wrapper >( gson ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( gson . toJson ( wrapper ), Ġdead lines ) ĊĠĠĠ Ġ} Ċ }