@Test
public void testHeaderHasPrecedenceOverQueryParam()
{

    OverrideMethodFilter filter = new OverrideMethodFilter();
    ContainerRequest request = new ContainerRequest(
            URI.create("http://www.example.com/"),
            URI.create("http://www.example.com/?_method=PUT"),
            "POST",
            new MockSecurityContext(),
            new MockPropertiesDelegate());
    request.header(OverrideMethodFilter.HEADER, "DELETE");
    filter.filter(request);
    assertEqualsIgnoreCase(request.getMethod(), "DELETE");
}