package Ġcom . todo . app . model . domain model Ċ Ċ import Ġio . mock k . Mock K Annotations Ċ import Ġio . mock k . impl . annotations . Mock K Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . junit . Mockito JUnit Runner Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠItem Domain Model Test Ġ{ ĊĠĠĠ Ġ@ Mock K ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġhit Domain Model : ĠHit Domain Model ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġdomain Model : ĠItem Domain Model ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ ĠMock K Annotations . init ( this , Ġrelax ed Ġ= Ġtrue ) ĊĠĠĠĠĠĠĠ Ġdomain Model Ġ= ĠItem Domain Model ( listOf ( hit Domain Model )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġverify _ domain _ model _ data () Ġ{ ĊĠĠĠĠĠĠĠ Ġassert ( domain Model . hits Ġ== ĠlistOf ( hit Domain Model )) ĊĠĠĠ Ġ} Ċ }