    @Test
    public void testCustomContentType() throws Exception {

        String contentType = "application/json";
        Map<String, String> headers = new HashMap<String, String>();
        headers.put("Content-Type", contentType);
        headers.put("X-Custom-Header", "value");

        AtmosphereResponse response = setupResponse(headers);
        int contentLength = 100;

        String result = sut.constructStatusAndHeaders(response, contentLength);

        assertEquals("HTTP/1.1 200 OK\r\n" +
            "Content-Type:" + contentType + "\r\n" +
            "Content-Length:" + contentLength + "\r\n" +
            "X-Custom-Header:value\r\n" +
            "\r\n", result);

        verifyInteractions(response);
    }