}
protected SecurityUserGroupServiceConfig createUGConfig(String name, Class<?> aClass,
String encoder, String policyName) {
MemoryUserGroupServiceConfigImpl config = new MemoryUserGroupServiceConfigImpl();
config.setName(name);
config.setClassName(aClass.getName());
config.setPasswordEncoderName(encoder);
config.setPasswordPolicyName(policyName);
/*SecurityUserGroupServiceConfig ugConfig = createNiceMock(SecurityUserGroupServiceConfig.class);
expect(ugConfig.getName()).andReturn(name).anyTimes();
expect(ugConfig.getClassName()).andReturn(aClass.getName()).anyTimes();
expect(ugConfig.getPasswordEncoderName()).andReturn(encoder).anyTimes();
expect(ugConfig.getPasswordPolicyName()).andReturn(policyName).anyTimes();