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