MessageContextMethodArgumentResolver implements MethodArgumentResolver { @Override public boolean supportsParameter(MethodParameter parameter) { return MessageContext.class.equals(parameter.getParameterType()); }  @Override boolean supportsParameter(MethodParameter parameter); @Override MessageContext resolveArgument(MessageContext messageContext, MethodParameter parameter);  }
@Test public void supportsParameter() throws Exception { assertTrue("resolver does not support MessageContext", resolver.supportsParameter(supported)); }