package Ġcom . brand ongo get ap . d agger extensions . sco ping . helpers Ċ Ċ import Ġcom . brand ongo get ap . d agger extensions . sco ping . cleanup . Clear able Ċ import Ġcom . brand ongo get ap . d agger extensions . sco ping . cleanup . Clear able Component Ċ import Ġorg . junit . Test Ċ import Ġorg . mockito . Mockito .* Ċ Ċ class ĠComponent ViewModel Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġon Cle ared Called On Clear ables () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcomponent Ġ= Ġmock ( Clear able Component :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġclear able Ġ= Ġmock ( Clear able :: class . java ) ĊĠĠĠĠĠĠĠ Ġ` when `( component . provide Clear able Objects ()). thenReturn ( set Of ( clear able )) ĊĠĠĠĠĠĠĠ Ġval ĠviewModel Ġ= ĠComponent ViewModel () ĊĠĠĠĠĠĠĠ ĠviewModel . component Ġ= Ġcomponent ĊĊĠĠĠĠĠĠĠ ĠviewModel . call On Cle ared () ĊĊĠĠĠĠĠĠĠ Ġverify ( clear able ). on Cle ared () ĊĠĠĠ Ġ} Ċ }