* 正确的用户名、密码
* @throws Exception
*/
@Test
public void testUserExistInDb() throws Exception {
UseController c = new UseController();
c.setIdentityService(identityService);
MockHttpSession session = new MockHttpSession();
String view = c.logon("kafeitu", "000000", session);
assertEquals("redirect:/main/index", view);
assertNotNull(session.getAttribute("user"));
User user = (User) session.getAttribute("user");
assertEquals("kafeitu", user.getId());
}