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

	addListener("/ApiListenerThatProducesXML/", Methods.PUT, null, MediaTypes.XML);
	Response result = service(createRequest("ApiListenerThatProducesXML", Methods.PUT, "<xml>data</xml>"));
	assertEquals(200, result.getStatus());
	assertEquals("<xml>data</xml>", result.getContentAsString());
	assertEquals("OPTIONS, PUT", result.getHeader("Allow"));
	assertTrue("Content-Type header does not contain [application/xml]", result.getContentType().contains("application/xml"));
	assertNull(result.getErrorMessage());
}