    @Test
    public void testPNGGeneration() throws IOException
    {

        HTTPHeaders h = new HTTPHeaders();
        h.putValue(HTTPHeader.CONTENT_TYPE, MimeType.TEXT_PLAIN_UTF8);
        h.putValue(HTTPHeader.ACCEPT, MimeType.PNG);
        
        ResponseData response = new Ditaa().generate(new Request(
                URI.create("/ditaa"),
                h,
                DITAA_INPUT.getBytes(Charset.forName("UTF-8"))
        ));

        Assert.assertIsPNG(response);
    }