@Test
public void getCakes() throws Exception {

    PowerMockito.mockStatic(Looper.class);
    when(AndroidSchedulers.mainThread()).thenReturn(mRxJavaSchedulersHook.getComputationScheduler());
    when(mApiService.getCakes()).thenReturn(mObservable);
    //        when(observable.subscribeOn(Schedulers.newThread())).thenReturn(observable);
    //        when(observable.observeOn(AndroidSchedulers.mainThread())).thenReturn(observable);
    presenter.getCakes();
    verify(mView, atLeastOnce()).onShowDialog("Loading cakes....");
}