protected UserGroupStoreValidationWrapper createStore(String name) throws IOException {
MemoryUserGroupServiceConfigImpl config = new MemoryUserGroupServiceConfigImpl();
config.setName(name);
config.setPasswordEncoderName(getPBEPasswordEncoder().getName());
config.setPasswordPolicyName(PasswordValidator.DEFAULT_NAME);
GeoServerUserGroupService service = new MemoryUserGroupService();
service.setSecurityManager(getSecurityManager());
service.initializeFromConfig(config);
return new UserGroupStoreValidationWrapper(service.createStore());
}