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

	addListener("exitcode", Methods.GET);
	Map<String, String> headers = new HashMap<String, String>();
	headers.put("Accept", "application/json");
	headers.put("content-type", "application/json");
	session = new HashMap<String, Object>();
	session.put("exitcode", "234");
	Response result = service(createRequest("exitcode", Methods.GET, null, headers));
	assertEquals(234, result.getStatus());
	assertEquals("OPTIONS, GET", result.getHeader("Allow"));
	assertNull(result.getErrorMessage());
}