@Test
public void retrieveEventFeedRetrievesFromService() throws Exception {

    List<Event> events = mock(List.class);
    EventListFeed feed = mock(EventListFeed.class);
    EventFeedToList converter = mock(EventFeedToList.class);
    whenNew(EventFeedToList.class).withNoArguments().thenReturn(converter);
    when(converter.call(feed)).thenReturn(events);
    when(service.retrieveEventFeed()).thenReturn(Observable.just(feed));
    TestSubscriber<List<Event>> ts = new TestSubscriber<>();
    network.retrieveEventFeed().subscribe(ts);
    assertThat(ts.getOnNextEvents(), hasItems(events));
}