package Ġcom . sh am lo u . data _ local . map pers . cities Ċ Ċ import Ġcom . sh am lo u . bases . mapper . Mapper Ċ import Ġcom . sh am lo u . data . model . cities . Response City Data Ċ import Ġcom . sh am lo u . data _ local . model . cities . Response City Local Ċ import Ġcom . sh am lo u . data _ local . utility . F akes . valid C it iy ResponseData Ċ import Ġcom . sh am lo u . data _ local . utility . F akes . valid C it iy Response Local Ċ import Ġcom . sh am lo u . data _ local . utility . Main Coroutine Rule Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġkotlinx . coroutines . test . run Blocking Test Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ Ċ class ĠMapper C ities Local To Data Test (){ ĊĊĠĠĠ Ġ@ Experimental Cor outines Api ĊĠĠĠ Ġ@ get : Rule ĊĠĠĠ Ġvar Ġmain Coroutine Rule Ġ= ĠMain Coroutine Rule () ĊĊĠĠĠ Ġprivate Ġval Ġmapper Ġ: ĠMapper < Response City Local , ĠResponse City Data > Ġ= ĠMapper C ities Local To Data () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Experimental Cor outines Api ĊĠĠĠ Ġfun Ġmap _ should Return Compatible Response When Valid Input () Ġ= Ġmain Coroutine Rule . run Blocking Test Ġ{ ĊĠĠĠĠĠĠĠ Ġ// when ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġmapper . map ( valid C it iy Response Local ) ĊĠĠĠĠĠĠĠ Ġ// then ĊĠĠĠĠĠĠĠ ĠAssert . assertEquals ( response ._ id , Ġvalid C it iy ResponseData ._ id ) ĊĠĠĠ Ġ} Ċ }