@Test public void testFindAll_shouldReturnEmptyList() throws Exception { final List<User> expectedUsers = Lists.emptyList(); List<User> returnedUsers = userController.findAll(); verify(userService, times(1)).findAll(); assertEquals("Returned users should come from the service", expectedUsers, returnedUsers); }