GetPrinterDetails extends UseCase { @Override protected Observable buildUseCaseObservable() { return mPrinterRepository.printerDetails(); } @Inject  GetPrinterDetails(PrinterRepository printerRepository, ThreadExecutor threadExecutor,
                             PostExecutionThread postExecutionThread);   }
@Test public void testGetPrinterDetailsUseCaseObservable() { mGetPrinterDetails.buildUseCaseObservable(); verify(mockPrinterRepository).printerDetails(); verifyNoMoreInteractions(mockPrinterRepository); verifyNoMoreInteractions(mockThreadExecutor); verifyNoMoreInteractions(mockPostExecutionThread); }