@Test(expected = IOException.class)
    public void testFinalBlockOftestRunFinished() throws Exception {
        OutputStream stream = new OutputStream() {
            @Override
            public void write(int b) throws IOException {
                throw new IOException("Oops");
            }
        };
        new TestLinkXmlRunListener(stream, "mirko").testRunFinished(new Result());
    }