UserListPresenter extends SingleViewPresenter<UserListView> { public boolean isDataLoaded() { return mIsDataLoaded; } @Inject  UserListPresenter(UserService userService); void loadData(); boolean isDataLoaded();  }
@Test public void testPresenter() throws InterruptedException { assertNotNull(mUserListPresenter); mUserListPresenter.setView(mock(UserListView.class)); Thread.sleep(1000); assertTrue(mUserListPresenter.isDataLoaded()); }