source: class CakePresenterTest {
  
      public static final String TEST_ERROR_MESSAGE;
      @InjectMocks private CakePresenter presenter;
      @Mock private CakeApiService mApiService;
      @Mock private CakeMapper mCakeMapper;
      @Mock private Storage mStorage;
      @Mock private MainView mView;
      @Mock private Observable<CakesResponse> mObservable;
      @Captor private ArgumentCaptor<Subscriber<CakesResponse>> captor;
      private final RxJavaSchedulersHook mRxJavaSchedulersHook;
  
      @Test
      public void onCompleted() throws Exception {
  
target:         presenter.onCompleted();
          verify(mView, times(1)).onHideDialog();
          verify(mView, times(1)).onShowToast("Cakes loading complete!");
      }
  
  }