package Ġcom . the d ancer codes . android . cre atures . remote . mapper Ċ Ċ import Ġcom . the d ancer codes . android . cre atures . remote . test . factory . Creature Model Factory Ċ 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 ĠCre ature Entity Mapper Test Ġ{ ĊĊĠ Ġprivate Ġlateinit Ġvar Ġcreature Entity Mapper : ĠCre ature Entity Mapper ĊĊĠ Ġ@ Before ĊĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġcreature Entity Mapper Ġ= ĠCre ature Entity Mapper () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġmap From Remote Maps Data () Ġ{ ĊĠĠĠ Ġval Ġcreature Model Ġ= ĠCre ature Model Factory . make Creature Model () ĊĠĠĠ Ġval Ġcreature Entity Ġ= Ġcreature Entity Mapper . map From Remote ( creature Model ) ĊĊĠĠĠ ĠassertEquals ( creature Model . firstName , Ġcreature Entity . firstName ) ĊĠĠĠ ĠassertEquals ( creature Model . lastName , Ġcreature Entity . lastName ) ĊĠĠĠ ĠassertEquals ( creature Model . nickname , Ġcreature Entity . nickname ) ĊĠĠĠ ĠassertEquals ( creature Model . image , Ġcreature Entity . image ) ĊĠĠĠ ĠassertEquals ( creature Model . planet , Ġcreature Entity . planet ) ĊĠ Ġ} Ċ }