@Test public void validateOrigin_configuredOrigin() {

  handler = new CorsHandler("http://foobar.com");
  boolean valid = validateOrigin(
    "get",
    ImmutableMap.of("Origin", "http://foobar.com"),
    ImmutableMap.of(
      "vary", "origin",
      "access-control-allow-origin", "http://foobar.com"
    )
  );
  assertThat(valid).isTrue();
}