SoapMethodArgumentResolver implements MethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter parameter) { Class<?> parameterType = parameter.getParameterType(); return SoapMessage.class.equals(parameterType) || SoapBody.class.equals(parameterType) || SoapEnvelope.class.equals(parameterType) || SoapHeader.class.equals(parameterType); }  @Override boolean supportsParameter(MethodParameter parameter); @Override Object resolveArgument(MessageContext messageContext, MethodParameter parameter);  }
@Test public void supportsParameter() throws Exception { assertTrue("resolver does not support SoapMessage", resolver.supportsParameter(soapMessageParameter)); assertTrue("resolver does not support SoapEnvelope", resolver.supportsParameter(soapEnvelopeParameter)); assertTrue("resolver does not support SoapBody", resolver.supportsParameter(soapBodyParameter)); assertTrue("resolver does not support SoapHeader", resolver.supportsParameter(soapHeaderParameter)); }