class GetEncoderList extends UseCase {

    @Override
    public Observable buildUseCaseObservable() {
        return this.dvrRepository.encoders();
    }

}

class GetEncoderListTest {

    private GetEncoderList getEncoderList;
    @Mock
    private ThreadExecutor mockThreadExecutor;
    @Mock
    private PostExecutionThread mockPostExecutionThread;
    @Mock
    private DvrRepository mockDvrRepository;

    @Test
    public void testGetEncoderListUseCaseObservableHappyCase() {


        getEncoderList.buildUseCaseObservable();

        verify( mockDvrRepository ).encoders();
        verifyNoMoreInteractions( mockDvrRepository );
        verifyZeroInteractions( mockThreadExecutor );
        verifyZeroInteractions( mockPostExecutionThread );

    }

}