@Test
    public void generate_oneClass()
            throws IOException, InterruptedException, ParserConfigurationException,
            SAXException, TransformerException, XPathExpressionException {
        initGenerator();

        ByteArrayOutputStream dotOut = new ByteArrayOutputStream(1024);

        String ext = "svg";
        // svg generation
        new ProcessPipeline().invoke(
                Arrays.asList("/usr/local/bin/dot", "-T" + ext),
                generator,
                dotOut
        );

        byte[] resultBytes = dotOut.toByteArray();
        if (ext.equals("svg")) {
            ByteArrayOutputStream transformOut = new ByteArrayOutputStream();

            SVGTransformer transformer = new SVGTransformer();
            transformer.transform(new ByteArrayInputStream(resultBytes), transformOut);

            //
            resultBytes = transformOut.toByteArray();
            System.out.println(new String(resultBytes, "utf-8"));
        }

        FileOutputStream fout = new FileOutputStream(new File(outputDir(getClass().getSimpleName()), "classDiag." + ext));
        fout.write(resultBytes);
        fout.close();
    }