import Ġcom . architect coders . data . repository . Mar vel Repository Ċ import Ġcom . architect coders . use cases . Is Recovery Hint Correct Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mock Ċ import Ġorg . mockito . junit . Mockito JUnit Runner Ċ import Ġorg . mockito . kotlin . wh enever Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠIs Recovery Hint Correct Test Ġ{ ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmar vel Repository : ĠMar vel Repository ĊĊĠĠĠ Ġlateinit Ġvar Ġis Recovery Hint Correct : ĠIs Recovery Hint Correct ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġis Recovery Hint Correct Ġ= ĠIs Recovery Hint Correct ( mar vel Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` Confirm Ġif Ġthe Ġstored Ġhint Ġis Ġcorrect ` (): ĠUnit Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġwhenever ( is Recovery Hint Correct . invoke (" hello ")). thenReturn ( true ) ĊĠĠĠĠĠĠĠ Ġval Ġresult Ġ= Ġis Recovery Hint Correct . invoke (" hello ") ĊĠĠĠĠĠĠĠ ĠassertEquals ( result , Ġtrue ) ĊĠĠĠ Ġ} Ċ } Ċ