@Test
    public void test() {
        final JUnitCore core = new JUnitCore();
        final TestLinkXmlRunListener xmlListener = new TestLinkXmlRunListener(new PrintStream(new ByteArrayOutputStream()), "goofy");
        core.addListener(xmlListener);
        core.addListener(new TestLinkLoggingRunListener());
        core.addListener(new TestLinkLoggingRunListener(LoggerFactory.getLogger("MINE"), URI.create("http://testlink.sourceforge.net/demo/")));
        core.run(SUTTestLinkRunListener.class);
        final Xpp3Dom results = xmlListener.getResults();
        assertEquals(7, results.getChildCount());
        assertAllTestCasesHaveRequiredElements(results);
        assertEquals(5, countTestsWithExternalIdfinal(results));
        assertEquals(2, countIgnoredTests(results));
    }