GeoServerUser disabledUser = (GeoServerUser) userService.loadUserByUsername("disabledUser");
assertNotNull(disabledUser);
assertTrue(enc.isPasswordValid(disabledUser.getPassword(), "nah", null));
assertFalse(disabledUser.isEnabled());
GeoServerRole role_admin = roleService.getRoleByName(XMLRoleService.DEFAULT_LOCAL_ADMIN_ROLE);
assertNotNull(role_admin);
GeoServerRole role_wfs_read = roleService.getRoleByName("ROLE_WFS_READ");
assertNotNull(role_wfs_read);
GeoServerRole role_wfs_write = roleService.getRoleByName("ROLE_WFS_WRITE");
assertNotNull(role_wfs_write);
GeoServerRole role_test = roleService.getRoleByName("ROLE_TEST");
assertNotNull(role_test);
assertNotNull(roleService.getRoleByName("NO_ONE"));
assertNotNull(roleService.getRoleByName("TRUSTED_ROLE"));
assertNotNull(roleService.getRoleByName("ROLE_SERVICE_1"));
assertNotNull(roleService.getRoleByName("ROLE_SERVICE_2"));