@Test
public void testVisit() throws Exception {

    PackageDescr packageDescr = getPackageDescr(Verifier.class.getResourceAsStream("Misc3.drl"));
    assertNotNull(packageDescr);
    packageDescrVisitor.visitPackageDescr(packageDescr);
    Collection<VerifierComponent> all = verifierData.getAll();
    Set<String> names = new HashSet<String>();
    for (VerifierComponent verifierComponent : all) {
        String path = verifierComponent.getPath();
        System.out.println("-" + verifierComponent);
        if (verifierComponent.getDescr() != null) {
            System.out.println(" \n\t\t => " + verifierComponent.getDescr().getLine() + ":" + +verifierComponent.getDescr().getEndLine() + " " + verifierComponent.getDescr().getText());
        } else { System.out.println(" \n\t\t => null for " + verifierComponent.getClass().getSimpleName()); }
        if (names.contains(path)) {
            fail("Dublicate path " + path);
        } else {
            names.add(path);
        }
    }
    assertNotNull(all);
    assertEquals(45,
                 all.size());
}