@Test
public void handle() {

  initializeValidRequest(request);
  handler.handle(request, response);
  assertThat(response.getStatus()).isEqualTo(HttpServletResponse.SC_OK);
  assertThat(response.getHeader("Access-Control-Allow-Origin")).isEqualTo(ORIGIN);
  assertThat(response.getHeader("Access-Control-Allow-Headers")).isEqualTo(TEST_HEADER);
  assertThat(response.getHeader("Access-Control-Max-Age")).isEqualTo("3600");
  assertThat(response.getHeader("Access-Control-Allow-Credentials")).isEqualTo("true");
  assertThat(COMMA_SPLITTER.split(response.getHeader("Access-Control-Allow-Methods")))
      .containsExactly("HEAD", "DELETE", "GET", "PATCH", "POST", "PUT");
}