@Test
public void returnsEventsFromFeed() {

    Event event = mock(Event.class);
    List<Event> events = Arrays.asList(event);
    EventListFeed feed = new EventListFeed();
    feed.events = events;
    feed.users = new HashMap<>();
    feed.posts = new HashMap<>();
    List<Event> result = feed.flatten();
    assertThat(result, equalTo(events));
}