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

	addListener("listenerLovesContentTypeJSON", Methods.POST, MediaTypes.JSON, MediaTypes.JSON);
	Map<String, String> headers = new HashMap<String, String>();
	headers.put("Accept", "application/json");
	headers.put("content-type", "application/json");
	Response result = service(createRequest("listenerLovesContentTypeJSON", Methods.POST, "{}", headers));
	assertEquals(200, result.getStatus());
	assertEquals("{}", result.getContentAsString());
	assertEquals("OPTIONS, POST", result.getHeader("Allow"));
	assertTrue("Content-Type header does not contain [application/json]", result.getContentType().contains("application/json"));
	assertNull(result.getErrorMessage());
}