package Ġcom . github . ker ub istan . ker ub . planner . steps . host . startup Ċ Ċ import Ġcom . github . ker ub istan . ker ub . data . dynamic . Host Dynamic Dao Ċ import Ġcom . github . ker ub istan . ker ub . host . Host Manager Ċ import Ġcom . github . ker ub istan . ker ub . model . lom . Wake On Lan Info Ċ import Ġcom . github . ker ub istan . ker ub . test Host Ċ import Ġcom . github . ker ub istan . ker ub . test Host Capabilities Ċ import Ġcom . n ha ar man . mockito _ kotlin . any Ċ import Ġcom . n ha ar man . mockito _ kotlin . do Nothing Ċ import Ġcom . n ha ar man . mockito _ kotlin . eq Ċ import Ġcom . n ha ar man . mockito _ kotlin . mock Ċ import Ġcom . n ha ar man . mockito _ kotlin . spy Ċ import Ġcom . n ha ar man . mockito _ kotlin . wh enever Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mockito Ċ Ċ class ĠW ake Host Executor Test Ġ{ Ċ ĉ private Ġval Ġhost Manager Ġ: ĠHost Manager Ġ= Ġmock () ĊĊ ĉ private Ġval Ġhost Dyn Dao Ġ: ĠHost Dynamic Dao Ġ= Ġmock () ĊĊ ĉ val Ġhost Ġ= Ġtest Host . copy ( Ċĉĉ ĉ capabilities Ġ= Ġtest Host Capabilities . copy ( Ċĉĉĉ ĉ power Man ag ment Ġ= ĠlistOf ( Ċĉĉĉĉĉ ĉ Wake On Lan Info ( listOf ( ByteArray ( 6 ))) Ċĉĉĉ ĉ ) Ċĉĉ ĉ ) Ċ ĉ ) ĊĊ ĉ @ Test Ċ ĉ fun Ġexecute () Ġ{ Ċĉ ĉ val Ġexecutor Ġ= Ġspy ( Wake Host Executor ( host Manager , Ġhost Dyn Dao )) Ċĉ ĉ val Ġstep Ġ= ĠW ol Wake Host ( host ) Ċĉ ĉ do Nothing (). wh enever ( executor ). wake On Loan ( eq ( host )) Ċĉ ĉ executor . execute ( step ) ĊĊĉ ĉ Mockito . verify ( host Dyn Dao ). update ( any (), Ġany (), Ġany ()) Ċ ĉ } Ċ }