@ file : Suppress (" DE PREC ATION ") Ċ Ċ package Ġcom . episode 6 . hack it . mock sp ress o . d agger Ċ Ċ import Ġcom . episode 6 . hack it . mock sp ress o . Mock sp ress o Ċ import Ġcom . episode 6 . hack it . mock sp ress o . api . Injection Config Ċ import Ġcom . episode 6 . hack it . mock sp ress o . api . Special Object Maker Ċ import Ġcom . episode 6 . hack it . mock sp ress o . testing . className Ċ import Ġcom . n ha ar man . mock it ok otlin 2 .* Ċ import Ġorg . fest . assertions . api . Assertions . assertThat Ċ import Ġorg . fest . assertions . api . Assertions . at Index Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . stub bing . Answer Ċ Ċ /** Ċ Ġ* ĠTests Ġ[ com . episode 6 . hack it . mock sp ress o . d agger . D agger Plugins Ext Kt ] Ċ Ġ*/ Ċ class ĠD agger Plugins Ext Test Ġ{ ĊĊĠ Ġval Ġbuilder : ĠMock sp ress o . Builder Ġ= Ġmock ( default Answer Ġ= ĠAnswer Ġ{ Ġit . mock Ġ}) ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest Inject By D agger Source Of Truth () Ġ{ ĊĠĠĠ Ġval Ġresult Ġ= Ġbuilder . inject By D agger Config () ĊĊĠĠĠ ĠassertThat ( result ). isEqualTo ( builder ) ĊĠĠĠ Ġargument Captor < Injection Config >() Ġ{ ĊĠĠĠĠĠ Ġverify ( builder ). injector ( capture ()) ĊĠĠĠĠĠ ĠassertThat ( first Value ). has ( className (" J avax Injection Config ")) ĊĠĠĠ Ġ} ĊĠĠĠ Ġargument Captor < Special Object Maker >() Ġ{ ĊĠĠĠĠĠ Ġverify ( builder , Ġtimes ( 2 )). special Object Maker ( capture ()) ĊĠĠĠĠĠ ĠassertThat ( all Values ) ĊĠĠĠĠĠĠĠĠĠ Ġ. has ( className (" Provider Maker "), Ġat Index ( 0 )) ĊĠĠĠĠĠĠĠĠĠ Ġ. has ( className (" D agger Lazy Maker "), Ġat Index ( 1 )) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġtest Automatic L az ies Source Of Truth () Ġ{ ĊĠĠĠ Ġval Ġresult Ġ= Ġbuilder . automatic L az ies () ĊĊĠĠĠ ĠassertThat ( result ). isEqualTo ( builder ) ĊĠĠĠ Ġverify ( builder ). special Object Maker ( any < D agger Lazy Maker >()) ĊĠ Ġ} Ċ } Ċ