    @Test
    public void testGetTopStoriesSuccess() {

        when(TestRestServiceFactory.hnRestService.topStoriesRx())
                .thenReturn(Observable.just(new int[]{1, 2}));
        client.getStories(ItemManager.TOP_FETCH_MODE, ItemManager.MODE_DEFAULT, storiesListener);
        verify(TestRestServiceFactory.hnRestService).topStoriesRx();
        verify(storiesListener).onResponse(getStoriesResponse.capture());
        assertThat(getStoriesResponse.getValue()).hasSize(2);
    }