### Question:
CorsUtil { public static boolean isCoreRequest(HeaderMap headers) { return headers.contains(ORIGIN) || headers.contains(ACCESS_CONTROL_REQUEST_HEADERS) || headers.contains(ACCESS_CONTROL_REQUEST_METHOD); }  static boolean isCoreRequest(HeaderMap headers); static String matchOrigin(HttpServerExchange exchange, Collection<String> allowedOrigins); static String defaultOrigin(HttpServerExchange exchange); static String sanitizeDefaultPort(String url); static boolean isPreflightedRequest(HttpServerExchange exchange);  }### Answer:
@Test public void testIsCoreRequest() { HeaderMap headers = new HeaderMap(); assertThat(CorsUtil.isCoreRequest(headers), is(false)); headers = new HeaderMap(); headers.add(ORIGIN, ""); assertThat(CorsUtil.isCoreRequest(headers), is(true)); headers = new HeaderMap(); headers.add(ACCESS_CONTROL_REQUEST_HEADERS, ""); assertThat(CorsUtil.isCoreRequest(headers), is(true)); headers = new HeaderMap(); headers.add(ACCESS_CONTROL_REQUEST_METHOD, ""); assertThat(CorsUtil.isCoreRequest(headers), is(true)); }