List<DrlRuleParser> list = DrlRuleParser.findRulesDataFromDrl(drl);
assertEquals(3, list.size());
DrlRuleParser rd = list.get(0);
assertNotNull(rd);
assertEquals(1, rd.getHeader().size());
assertEquals(2, rd.getLhs().size());
assertEquals(3, rd.getRhs().size());
assertEquals(1, rd.getMetadata().size());
assertNotNull(rd.getDescription());
assertNotSame("", rd.getDescription());
DrlRuleParser rd2 = list.get(1);
assertNotNull(rd2);
assertEquals(1, rd2.getHeader().size());
assertEquals(2, rd2.getLhs().size());
assertEquals(3, rd2.getRhs().size());
assertEquals(3, rd2.getMetadata().size());
assertNotNull(rd2.getDescription());
String description = "Really important information about this rule\n";
description += "Another line because one was not enough\n\n";
assertEquals(description, rd2.getDescription());
assertNotSame("", rd2.getDescription());
DrlRuleParser rd3 = list.get(2);
assertNotNull(rd3);
assertEquals(1, rd3.getHeader().size());
assertEquals(2, rd3.getLhs().size());
assertEquals(3, rd3.getRhs().size());
assertNotNull(rd3.getDescription());
assertEquals("", rd3.getDescription());
}