@Test
public void corsGetRequest() throws ServletException, IOException, ListenerException, ConfigurationException {

	addListener("not-preflight/", Methods.POST);
	Map<String, String> headers = new HashMap<String, String>();
	headers.put("origin", "https://ibissource.org");
	headers.put("Access-Control-Request-Headers", "Message-Id,CustomHeader");
	Response result = service(createRequest("not-preflight/", Methods.POST, "data", headers));
	assertEquals(200, result.getStatus());
	assertEquals("data", result.getContentAsString());
	assertNull(result.getErrorMessage());
	assertTrue(result.containsHeader("Access-Control-Allow-Origin"));
	assertTrue(result.containsHeader("Access-Control-Allow-Headers"));
	assertEquals(result.getHeader("Access-Control-Allow-Headers"), "Message-Id,CustomHeader");
	assertTrue(result.containsHeader("Access-Control-Expose-Headers"));
	assertTrue(result.containsHeader("Access-Control-Allow-Methods"));
	assertEquals("OPTIONS, POST", result.getHeader("Allow"));
}