@Test
public void testSetConfiguration() throws Exception {

	Properties configuration = new Properties();
	configuration.setProperty("org.apache.ws.security.crypto.provider",
			"org.apache.ws.security.components.crypto.Merlin");
	configuration.setProperty("org.apache.ws.security.crypto.merlin.keystore.type", "jceks");
	configuration.setProperty("org.apache.ws.security.crypto.merlin.keystore.password", "123456");
	configuration.setProperty("org.apache.ws.security.crypto.merlin.file", "private.jks");
	factoryBean.setConfiguration(configuration);
	factoryBean.afterPropertiesSet();
	Object result = factoryBean.getObject();
	Assert.assertNotNull("No result", result);
	Assert.assertTrue("Not a Merlin instance", result instanceof Merlin);
}