@Test
public void simple_withCors() throws Exception {

  TestMethodHandler handler = createTestHandler("simple", RESOURCE, RESOURCE);
  request.addHeader("Origin", "http://test.com");
  handler.getRestHandler().handle(context);
  assertThat(response.getHeader("Access-Control-Allow-Origin")).isEqualTo("http://test.com");
  assertThat(response.getHeader("Access-Control-Allow-Credentials")).isEqualTo("true");
}