@Test
public void transformLocations() throws Exception {

	adapter.setTransformLocations(true);
	request.setMethod(HttpTransportConstants.METHOD_GET);
	request.setScheme("http");
	request.setServerName("example.com");
	request.setServerPort(8080);
	request.setContextPath("/context");
	request.setServletPath("/service.wsdl");
	request.setPathInfo(null);
	request.setRequestURI("/context/service.wsdl");
	replay(definitionMock);
	DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactoryUtils.newInstance();
	documentBuilderFactory.setNamespaceAware(true);
	DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
	Document result = documentBuilder.parse(getClass().getResourceAsStream("wsdl11-input.wsdl"));
	adapter.transformLocations(result, request);
	Document expectedDocument = documentBuilder.parse(getClass().getResourceAsStream("wsdl11-expected.wsdl"));
	assertXMLEqual("Invalid result", expectedDocument, result);
	verify(definitionMock);
}