public void testXHttpMethodOverride() {
MockHttpServletRequest request = new MockHttpServletRequest();
request.setMethod("POST");
request.addHeader(HttpHeadersEx.X_HTTP_METHOD_OVERRIDE, "PUT");
MessageContext context =
new ServerMessageContext(
request,
new MockHttpServletResponse(),
getDeploymentConfiguration("X-HTTP-Method-Override,X-Method-Override"));
assertEquals("HTTP method", HttpMethod.PUT, context.getHttpMethod());
}