@Test
public void notCorsOptionsRequestTest() throws IOException {

    setupRequestContext(HTTP_OPTIONS_METHOD, null, null, null);
    setupResponseContext(null);
    filter.filter(requestContext, responseContext);
    // Not a CORS request, thus no CORS headers should be added.
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_METHODS_HEADER);
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_ORIGIN_HEADER);
    assertResponseWithoutHeader(ACCESS_CONTROL_ALLOW_HEADERS);
    assertResponseWithoutHeader(VARY_HEADER);
}