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

	addListener("preflight/", Methods.GET);
	Response result = service(createRequest("preflight/", Methods.OPTIONS, null));
	assertEquals(200, result.getStatus());
	assertEquals("", result.getContentAsString()); //Pre-flight requests have no data
	assertNull(result.getErrorMessage());
	assertTrue(result.containsHeader("Access-Control-Allow-Origin"));
	assertFalse(result.containsHeader("Access-Control-Allow-Headers"));
	assertTrue(result.containsHeader("Access-Control-Expose-Headers"));
	assertTrue(result.containsHeader("Access-Control-Allow-Methods"));
}