@Test
  @Transactional
  public void testUpdate() throws Exception {
    User user = this.insertUser("makersoft-vertical", "makersoft-vertical", 18, User.SEX_MALE);

    assertNotNull("Insert User does not success!", user);

    user.setUsername("fengkuok");
    user.setPassword("password");
    int rows = userMapper.updateById(user);

    assertTrue("Update User does not success!", rows == 1);

    User fengkuok = userMapper.getById(user.getId());

    assertTrue("Update User does not success!", user.equals(fengkuok));
  }