@Test
void testOnHeadersRead_corsShortCircuit() {

  CorsConfig corsConfig = CorsConfigBuilder.forOrigin("test.domain").shortCircuit().build();
  Http2CorsHandler corsHandler = new Http2CorsHandler(corsConfig);
  testHandler = new Http2Handler(mockEncoder, MAX_PAYLOAD, corsHandler);
  headers.method("GET").add("origin", "illegal.domain").path(OK_PATH);
  testHandler.onHeadersRead(mockContext, STREAM_ID, headers, 1, true);
  assertEquals(1L, requestMeter.getCount());
  verifyResponse(HttpResponseStatus.FORBIDDEN, ImmutableMap.of(), Optional.empty(), STREAM_ID);
}