UserList extends BasePage implements Serializable { public String search() { return "success"; } UserList(); void setQuery(String query); String getQuery(); List getUsers(); String search();  }
@Test public void testSearch() throws Exception { userManager.reindex(); bean.setQuery("admin"); assertEquals("success", bean.search()); assertTrue(bean.getUsers().size() == 1); }