@Test public void shouldListAllEvents() { when(eventRepository.list()).thenReturn(events); assertThat(service.list(), hasItems(sportsEvent, annualEvent)); }