package Ġuk . lob ster do od le . name picker . analytics Ċ Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġcom . n ha ar man . mockito _ kotlin . verify Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġuk . lob ster do od le . name picker . events . EventBus Ċ import Ġuk . lob ster do od le . name picker . ui . Screen La unched Event Ċ Ċ class ĠScreen Analytics Test Ġ{ ĊĠĠĠ Ġlateinit Ġvar Ġbus : ĠEvent Bus ĊĠĠĠ Ġlateinit Ġvar Ġanalytics : ĠScreen Analytics ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġbus Ġ= Ġmock () ĊĠĠĠĠĠĠĠ Ġanalytics Ġ= ĠScreen Analytics ( bus ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġregisters _ on _ bus () Ġ{ ĊĠĠĠĠĠĠĠ Ġverify ( bus ). register ( analytics ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġon _ Screen La unched Event _ post _ Analytics Event () Ġ{ ĊĠĠĠĠĠĠĠ Ġanalytics . on ( Screen La unched Event (" Selection ĠScreen ", Ġ" Por trait ")) ĊĠĠĠĠĠĠĠ Ġverify ( bus ). post ( Analytics Event ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠScreen Analytics . Key . screen _ la unched , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmap Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠScreen Analytics . Param . screen _ name Ġto Ġ" Selection ĠScreen ", ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠScreen Analytics . Param . screen _ orientation Ġto Ġ" Por trait "))) ĊĠĠĠ Ġ} Ċ }