@Test
public void testFindAllHandler(){

    ExtendedModelMap model = new ExtendedModelMap();
    String viewName = userController.list(model);
    List<User> users = (List<User>) model.get("users");
    assertNotNull(users);
    assertEquals(2, users.size());
    assertEquals(Long.valueOf(0), users.get(0).getId());
    assertEquals("users/list", viewName);
}