WsSecurityConfigFactory { public Map<String, Object> getConfiguration(String certificateAlias) { return deepCopy(configuration, certificateAlias); } WsSecurityConfigFactory();   WsSecurityConfigFactory(final PropertyAccessorFileUtilities propFileUtil); static WsSecurityConfigFactory getInstance(); Map<String, Object> getConfiguration(String certificateAlias);  }
@Test public void verifyProperties() { final WsSecurityConfigFactory configFactory = new WsSecurityConfigFactory(propFileUtil); final Map<String, Object> configMap = configFactory.getConfiguration(null); verifyWsSecurityProperties(configMap); }
@Test public void verifyClone() { final WsSecurityConfigFactory configFactory = new WsSecurityConfigFactory(propFileUtil); final Map<String, Object> configMap1 = configFactory.getConfiguration(null); configMap1.remove(WSHandlerConstants.PASSWORD_TYPE); ((Properties) configMap1.get("cryptoProperties")).put("keyTest", "valueTest"); final Map<String, Object> configMap2 = configFactory.getConfiguration(null); assertEquals("PasswordDigest", configMap2.get(WSHandlerConstants.PASSWORD_TYPE)); assertNull(((Properties) configMap2.get("cryptoProperties")).get("keyTest")); }