XMLUserGroupServiceConfig xmlConfig = (XMLUserGroupServiceConfig)
createUGConfig("test1", XMLUserGroupService.class,
getPlainTextPasswordEncoder().getName(),PasswordValidator.DEFAULT_NAME,"test1.xml");
GeoServerUserGroup group=new GeoServerUserGroup("testgroup");
try {
validator.validateAddUserGroupService(xmlConfig);
//getSecurityManager().saveUserGroupService(xmlConfig);
//getSecurityManager().removeUserGroupService(xmlConfig);