GetUser extends UseCase<String, UserDto, UserRepository> implements OnUserChangedListener { @Inject public GetUser(UserRepository repository, Messenger messenger, @Named("Thread") Scheduler threadScheduler, @Named("PostExecution") Scheduler postExecutionScheduler) { super(repository, messenger, threadScheduler, postExecutionScheduler); } @Inject  GetUser(UserRepository repository,
                   Messenger messenger,
                   @Named("Thread") Scheduler threadScheduler,
                   @Named("PostExecution") Scheduler postExecutionScheduler); @Override void onDataChanged(String userId);  }
@Test @Override public void testBuildUseCaseObservable() { testBuildUseCaseObservable(FAKE_USER_ID, new Action0() { @Override public void call() { verify(mockRepository).getUser(FAKE_USER_ID, mockMessenger); } }); }