GetSearchResultList extends DynamicUseCase { @Override protected Observable buildUseCaseObservable( Map parameters ) { final String searchText = (String) parameters.get( "SEARCH_TEXT" ); return this.searchRepository.search( searchText ); } @Inject  GetSearchResultList( SearchRepository searchRepository, ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread );   }
@Test public void testGetSearchResultListUseCaseObservableHappyCase() { Map<String, String> parameters = Collections.singletonMap( "SEARCH_TEXT", FAKE_SEARCH_TEXT ); getSearchResultList.buildUseCaseObservable( parameters ); verify( mockSearchRepository ).search( FAKE_SEARCH_TEXT ); verifyNoMoreInteractions( mockSearchRepository ); verifyZeroInteractions( mockThreadExecutor ); verifyZeroInteractions( mockPostExecutionThread ); }