@Test
public void testLevelSet() throws Exception {

    TestUtil.testBlock(() -> {
        ProgressCheck check = new AcHandling().newInstance(obj().key("levelSet", "no_unsafe").get());
        CheckReport report = scanWithCheck(check, "test_childnodeorder.zip");
        logViolations("level_set:no_unsafe", report);
        Assert.assertEquals("no violations", 0, report.getViolations().size());
        assertTrue("all violations have packageIds", report.getViolations().stream()
                .allMatch(viol -> !viol.getPackages().isEmpty()));
    });
    TestUtil.testBlock(() -> {
        ProgressCheck check = new AcHandling().newInstance(obj().key("levelSet", "only_ignore").get());
        CheckReport report = scanWithCheck(check, "test_childnodeorder.zip");
        logViolations("level_set:only_ignore", report);
        Assert.assertEquals("one violation", 1, report.getViolations().size());
        assertTrue("all violations have packageIds", report.getViolations().stream()
                .allMatch(viol -> !viol.getPackages().isEmpty()));
    });
}