@Test(expected = WebServiceIOException.class)
public void testWrongSoapAction() throws Exception {
if (isJava15()) {
// does not work on JDK 1.5 due net.javacrumbs.spring-ws-test is not JDK 1.5 compatible
throw new WebServiceIOException("Forced by JDK 1.5");
}
StreamSource source = new StreamSource(new StringReader(xmlRequestForGoogleStockQuoteNoNamespace));
webServiceTemplate.sendSourceAndReceive(source, new SoapActionCallback("http://this-is-a-wrong-soap-action"), NOOP_SOURCE_EXTRACTOR);
resultEndpointSoapAction.assertIsNotSatisfied();
}