package Ġnet . rom . exchange . remote . mapper Ċ Ċ import Ġnet . rom . exchange . remote . factory . Item Exchange Factory Ċ import Ġnet . rom . exchange . remote . mapper . rom . Data Item Entity Mapper Ċ import Ġnet . rom . exchange . remote . mapper . rom . Month Entity Mapper Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . JUnit 4 Ċ import Ġkotlin . test . assertEquals Ċ Ċ @ RunWith ( JUnit 4 :: class ) Ċ class ĠMonth Entity Mapper Test Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġmonth Entity Mapper : ĠMonth Entity Mapper ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġmonth Entity Mapper Ġ= ĠMonth Entity Mapper ( Data Item Entity Mapper ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġmap From Remote Maps Data () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġmonth Model Ġ= ĠItem Exchange Factory . make Month Model () ĊĠĠĠĠĠĠĠ Ġval Ġmonth Entity Ġ= Ġmonth Entity Mapper . map From Remote ( month Model ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( month Model . data ?. size , Ġmonth Entity . data . size ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( month Model . change , Ġmonth Entity . change ) ĊĠĠĠ Ġ} Ċ Ċ }