PrintStream outOrig = System.out;
CountingOutStream outCount = new CountingOutStream();
System.setOut(new PrintStream(outCount));
String epubFilePath = getAbsoluteBasedir(epubPath + "valid/lorem.epub");
EpubChecker epubChecker = new EpubChecker();
int result = epubChecker.run(new String[]{ epubFilePath, "--quiet", "--out", xmlOutFileName});
System.setOut(outOrig);
assertEquals(0, result);
// System.err.println("Output [" + outCount.getValue() + "]");
assertEquals("Output [" + outCount.getValue() + "]", 0, outCount.getCounts());