@Test
public void givenWsdlAdapter_whenWsdlIsRequested_shouldRespondWithAdaptedWsdl() throws Exception {
File wsdlFile = new File(WSDL_FILE_PATH);
String initialWsdl = FileUtils.readFileToString(wsdlFile);
initialWsdl = initialWsdl.replace("$serviceLocation$", "/example/service");
InputStreamWsdlProvider wsdlProvider = new InputStreamWsdlProvider(new ByteArrayInputStream(initialWsdl.getBytes()));
WsdlProvider adapter = new WsdlLocationToRequestUrlAdapter(wsdlProvider);
when(service.getWsdlProvider()).thenReturn(adapter);
request.setScheme("http");
request.setServerName("test.example.com");
request.setServerPort(80);