private final String VALID_REPORT = "<pmd version=\"violations-0.8dev\"><file name=\"/dummy/TEST_FILE\"><violation beginline=\"19\" endline=\"19\" begincolumn=\"13\" endcolumn=\"20\" rule=\"UselessOperationOnImmutable\" ruleset=\"Basic Rules\" package=\"org.sprunck.bee\" class=\"Bee\" method=\"toString\" externalInfoUrl=\"http://pmd.sourceforge.net/rules/basic.html#UselessOperationOnImmutable\" priority=\"3\">An operation on an Immutable object (String, BigDecimal or BigInteger) won't change the object itself</violation></file></pmd>";
@Test
public void parseReportShouldReturnAnEmptyCollectionWhenTheReportIsInvalid() {
final OCLintParser testedParser = new OCLintParser(null, null);
final Collection<Violation> violations = testedParser.parseReport(new StringInputStream(""));
assertTrue(violations.isEmpty());
}