GetMessages extends UseCase<String, List<MessageDto>, MessageRepository> { @Inject public GetMessages(MessageRepository repository, Messenger messenger, @Named("Thread") Scheduler threadScheduler, @Named("PostExecution") Scheduler postExecutionScheduler) { super(repository, messenger, threadScheduler, postExecutionScheduler); } @Inject  GetMessages(MessageRepository repository,
                       Messenger messenger,
                       @Named("Thread") Scheduler threadScheduler,
                       @Named("PostExecution") Scheduler postExecutionScheduler);   }
@Test @Override public void testBuildUseCaseObservable() { testBuildUseCaseObservable(FAKE_PEER_ID, new Action0() { @Override public void call() { verify(mockRepository).getMessages(FAKE_PEER_ID, mockMessenger); } }); }