@Test
public void overridesHttpMethodWhenXHTTPMethodOverrideHeaderIsSet() throws Exception {

    when(configuration.isHttpMethodOverride()).thenReturn(true);
    requestHeaders.putSingle(X_HTTP_METHOD_OVERRIDE, "PUT");
    ContainerRequest containerRequest = mockContainerRequest();
    ContainerResponse containerResponse = mockContainerResponse();
    EnvironmentContext environmentContext = mock(EnvironmentContext.class);
    everrestProcessor.process(containerRequest, containerResponse, environmentContext);
    verify(containerRequest).setMethod("PUT");
}