package Ġcom . ult imate logger . multi platform Ċ Ċ import Ġcom . n ha ar man . mock it ok otlin 2 . mock Ċ import Ġcom . ult imate logger . multi platform . di . Lazy Service Locator Ċ import Ġcom . ult imate logger . multi platform . di . Service Locator Initializer Ċ import Ġcom . ult imate logger . multi platform . exception . Ult imate Logger Not Initialized Exception Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Test Ċ import Ġorg . k oin . core . context . stop K oin Ċ import Ġorg . k oin . core . module . Module Ċ Ċ internal Ġclass ĠService Locator Initializer Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġmock Module Ġ: ĠModule Ġ= Ġmock () ĊĊĠĠĠ Ġ@ After ĊĠĠĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠĠĠĠĠ Ġstop K oin () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` init Ġstarts ĠK oin , Ġso ĠLazy Service Locator Ġget Dependency Ġdoesn 't Ġthrow Ġexception `() Ġ{ ĊĠĠĠĠĠĠĠ ĠService Locator Initializer . init ( mock Module ) ĊĠĠĠĠĠĠĠ ĠLazy Service Locator . get Dependency < String >() ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ( expected Ġ= ĠU lt imate Logger Not Initialized Exception :: class ) ĊĠĠĠ Ġfun Ġ` destroy Ġstops ĠK oin , Ġso ĠLazy Service Locator Ġget Dependency Ġthrows Ġexception `() Ġ{ ĊĠĠĠĠĠĠĠ ĠService Locator Initializer . init ( mock Module ) ĊĊĠĠĠĠĠĠĠ ĠService Locator Initializer . destroy () ĊĊĠĠĠĠĠĠĠ ĠLazy Service Locator . get Dependency < String >(). value ĊĠĠĠ Ġ} Ċ }