import Ġcom . architect coders . data . repository . Mar vel Repository Ċ import Ġcom . architect coders . use cases . Delete Credentials Ċ import Ġkotlinx . coroutines . run Blocking Ċ 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 . verify Ċ Ċ @ RunWith ( Mockito JUnit Runner :: class ) Ċ class ĠDelete Credentials Test Ġ{ ĊĊĠĠĠ Ġ@ Mock ĊĠĠĠ Ġlateinit Ġvar Ġmar vel Repository : ĠMar vel Repository ĊĊĠĠĠ Ġlateinit Ġvar Ġdelete Credentials : ĠDelete Credentials ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġdelete Credentials Ġ= ĠDelete Credentials ( mar vel Repository ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` verify Ġif Ġdelete Credentials Ġis Ġinvoked ` (): ĠUnit Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġdelete Credentials . invoke ( Unit ) ĊĠĠĠĠĠĠĠ Ġverify ( mar vel Repository ). delete Credentials () ĊĠĠĠ Ġ} Ċ } Ċ