}
}
@Test
public void testMappedAdminRoles() throws Exception {
MemoryRoleServiceConfigImpl config = new MemoryRoleServiceConfigImpl();
config.setName("testAdminRole");
config.setAdminRoleName("adminRole");
config.setGroupAdminRoleName("groupAdminRole");
config.setClassName(MemoryRoleService.class.getName());
GeoServerRoleService service = new MemoryRoleService();
service.initializeFromConfig(config);
GeoServerSecurityManager manager = GeoServerExtensions.bean(GeoServerSecurityManager.class);
service.setSecurityManager(manager);
manager.setActiveRoleService(service);