@Test
public void warnUseSoapBodyNameSpace() throws IOException, PipeRunException, SAXException, WSDLException, ConfigurationException, XmlValidatorException {

	// Mock a configuration with an adapter in it
	IbisManager ibisManager = spy(new DefaultIbisManager());
	ibisManager.setIbisContext(spy(new IbisContext()));
	Configuration configuration = new Configuration(new DummyAdapterService());
	configuration.setName("dummyConfiguration");
	configuration.setVersion("1");
	configuration.setIbisManager(ibisManager);
	ConfigurationWarnings.getInstance().setActiveConfiguration(configuration);
	IAdapter adapter = spy(new Adapter());
	adapter.setName("dummy");
	PipeLine pl = new PipeLine();
	pl.setFirstPipe("dummy");
	WsdlXmlValidator val = new WsdlXmlValidator();
	val.setName("dummy");
	val.setWsdl(BASIC);
	val.setSoapHeader("MessageHeader");
	val.setSoapBody("GetPolicyDetails_Request");
	val.setAddNamespaceToSchema(true);
	val.setSchemaLocation("http://ibissource.org/XSD/Generic/MessageHeader/2 schema1 http://ibissource.org/XSD/LifeRetailCB/PolicyJuice/1/GetPolicyDetails/2 schema2");
	val.setThrowException(true);
	val.registerForward(new PipeForward("success", null));
	pl.addPipe(val);
	PipeLineExit ple = new PipeLineExit();
	ple.setPath("success");
	ple.setState("success");
	pl.registerPipeLineExit(ple);
	adapter.registerPipeLine(pl);
	adapter.setConfiguration(configuration);
	configuration.registerAdapter(adapter);
	assertEquals(1, configuration.getConfigurationWarnings().size());
	assertEquals("WsdlXmlValidator [dummy] use attribute [soapBodyNamespace] instead of attribute [schemaLocation] with value [http://ibissource.org/XSD/Generic/MessageHeader/2 schema1 http://ibissource.org/XSD/LifeRetailCB/PolicyJuice/1/GetPolicyDetails/1 schema2] for wsdl [/Validation/Wsdl/GetPolicyDetails/GetPolicyDetails.wsdl]", configuration.getConfigurationWarnings().getFirst());
	ConfigurationWarnings.getInstance().setActiveConfiguration(null);
}