@Test
public void partialCorsPreflightRequestTest() throws IOException {

    setupRequestContext(HTTP_OPTIONS_METHOD, ECLIPSE_ORIGIN, null, REQUEST_HEADERS);
    setupResponseContext(VARY_HEADER_VALUE);
    filter.filter(requestContext, responseContext);
    // Since the requestMethod header is not present in the request, it is not a valid Preflight CORS request.
    // Thus, no CORS header should be added to the response.
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_METHODS_HEADER);
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_ORIGIN_HEADER);
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_HEADERS);
    assertResponseHasHeader(VARY_HEADER, VARY_HEADER_VALUE);
}