UiThread implements PostExecutionThread { @Override public Scheduler getScheduler() { return AndroidSchedulers.mainThread(); } @Inject  UiThread(); @Override Scheduler getScheduler();  }
@Test public void getSchedulerShouldReturnAndroidSchedulersMainThread() { UiThread uiThread = new UiThread(); assertEquals(AndroidSchedulers.mainThread(), uiThread.getScheduler()); }