package Ġcom . z iz oh anto . android . to buy . cache . map pers Ċ Ċ import Ġcom . google . common . truth . Truth . assertThat Ċ import Ġcom . z iz oh anto . android . to buy . cache . data factory . Cache Data Factory . make Shopping List Cache Model Ċ import Ġcom . z iz oh anto . android . to buy . cache . data factory . Cache Data Factory . make Shopping List Entity Ċ import Ġcom . z iz oh anto . android . to buy . cache . models . Shopping List Cache Model Ċ import Ġcom . z iz oh anto . android . to buy . data . models . Shopping List Entity Ċ import Ġcom . z iz oh anto . android . to buy . data . utils . Date Utils . getCurrent Time Ċ import Ġorg . junit . Test Ċ Ċ class ĠShop ping List Cache Model Mapper Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġsut : ĠShop ping List Cache Model Mapper Ġ= ĠShop ping List Cache Model Mapper () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` map To Model Ġmaps Ġentity Ġto Ġmodel `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġexpected : ĠShop ping List Entity Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmake Shopping List Entity (). copy ( name Ġ= Ġ" V it so e ", Ġdate Modified Ġ= ĠgetCurrent Time ()) ĊĊĠĠĠĠĠĠĠ Ġval Ġactual : ĠShop ping List Cache Model Ġ= Ġsut . map To Model ( expected ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( actual . id ). isEqualTo ( expected . id ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . name ). isEqualTo ( expected . name ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . budget ). isEqualTo ( expected . budget ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . date Created ). isEqualTo ( expected . date Created ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . date Modified ). isEqualTo ( expected . date Modified ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` map To Entity Ġmaps Ġcache Ġmodel Ġto Ġentity `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġexpected : ĠShop ping List Cache Model Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmake Shopping List Cache Model (). copy ( name Ġ= Ġ" V it so e ", Ġdate Modified Ġ= ĠgetCurrent Time ()) ĊĊĠĠĠĠĠĠĠ Ġval Ġactual : ĠShop ping List Entity Ġ= Ġsut . map To Entity ( expected ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( actual . id ). isEqualTo ( expected . id ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . name ). isEqualTo ( expected . name ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . budget ). isEqualTo ( expected . budget ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . date Created ). isEqualTo ( expected . date Created ) ĊĠĠĠĠĠĠĠ ĠassertThat ( actual . date Modified ). isEqualTo ( expected . date Modified ) ĊĠĠĠ Ġ} Ċ }