assertEquals(user2.getProperties().getProperty("mail"),"user2@gmx.com");
assertEquals(user2.getProperties().getProperty("tel"),"12-34-38");
assertEquals(4, userGroupService.getUserGroups().size());
assertEquals(4, userGroupService.getGroupCount());
GeoServerUserGroup admins = userGroupService.getGroupByGroupname("admins");
GeoServerUserGroup group1 = userGroupService.getGroupByGroupname("group1");
GeoServerUserGroup group2 = userGroupService.getGroupByGroupname("group2");
GeoServerUserGroup disabledgroup = userGroupService.getGroupByGroupname("disabledgroup");
assertNull(userGroupService.getGroupByGroupname("yyy"));
assertTrue(userGroupService.getUserGroups().contains(admins));
assertTrue(userGroupService.getUserGroups().contains(group1));
assertTrue(userGroupService.getUserGroups().contains(group2));
assertTrue(userGroupService.getUserGroups().contains(disabledgroup));
assertTrue(admins.isEnabled());
assertTrue(group1.isEnabled());
assertTrue(group2.isEnabled());
assertFalse(disabledgroup.isEnabled());
assertEquals(2,userGroupService.getUsersForGroup(group1).size());
assertTrue(userGroupService.getUsersForGroup(group1).contains(user1));
assertTrue(userGroupService.getUsersForGroup(group1).contains(user2));
// check if properties are loaded too