json = JacksonBundle.nonNullMapper().toJson(user);
assertTrue(StringUtils.contains(json,"\"groupsList\""));
assertTrue(StringUtils.contains(json,"\"groupNames\""));
//测试初始值被改变的json user.setGroupsList(new ArrayList<Group>());
user = new User();
json = JacksonBundle.nonDefaultMapper().toJson(user);
assertTrue(StringUtils.contains(json,"{}"));
user.setEmail("maurice@es.com");
user.setUsername("maurice");