@Test(timeout=5000)
    public void unknownContentTypeHeader() throws Exception {
        logTestStart();
        // Create an artificial response with a random content type
        Map<String,String> headers = new HashMap<String,String>();
        headers.put("Content-type", "foo/bar");

        session.send(ComposableBody.builder()
                .build());
        StubConnection conn = cm.awaitConnection();
        AbstractBody scr = ComposableBody.builder()
                .setAttribute(Attributes.SID, "123XYZ")
                .setAttribute(Attributes.WAIT, "1")
                .setAttribute(
                    BodyQName.createBOSH("unknownBOSH"), "val")
                .setAttribute(
                    BodyQName.create("http://unknown.com/", "unknown"), "val")
                .build();
        conn.sendResponseWithStatusAndHeaders(scr, 200, headers);

        // We should still be able to use the session
        try {
            session.send(ComposableBody.builder()
                    .build());
            conn = cm.awaitConnection();
            conn.sendResponse(ComposableBody.builder().build());
        } catch (BOSHException boshx) {
            fail("Could not handle unknown Content-type");
        }

        assertValidators(scr);
    }