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

	addListener("/ApiListenerAllow/", Methods.POST, null, MediaTypes.JSON);
	Map<String, String> headers = new HashMap<String, String>();
	headers.put("Accept", "application/xml");
	Response result = service(createRequest("ApiListenerAllow", Methods.POST, "{}", headers));
	assertEquals(406, result.getStatus());
}