expect(secMgr.listUserGroupServices()).andReturn(new TreeSet<String>(
Arrays.asList("test1", "test2", "testModify"))).anyTimes();
expect(secMgr.loadPasswordEncoder(getPlainTextPasswordEncoder().getName()))
.andReturn(getPlainTextPasswordEncoder()).anyTimes();
expect(secMgr.listPasswordValidators()).andReturn(
new TreeSet<String>(Arrays.asList(PasswordValidator.DEFAULT_NAME))).anyTimes();
replay(ugService1, ugService2, ugServiceModify, secMgr);
//expect(secMgr.listUserGroupServices()).andReturn()
validator = new XMLSecurityConfigValidator(secMgr);