@Test
public void testShouldExpectAfterExtract() throws Exception {

    ExpectAces.Check check1 = checkFor(key("principal", "nouser").get());
    assertTrue("expect true for empty", check1.shouldExpectAfterExtract(PackageId.fromString("foo")));
    ExpectAces.Check check2 = checkFor(key("principal", "nouser")
            .key(ExpectAces.keys().afterPackageIdRules(),
                    arr().val(key("type", "include").key("pattern", "^my_packages:.*"))).get());
    assertFalse("expect false", check2.shouldExpectAfterExtract(PackageId.fromString("adamcin:test:1.0")));
    assertTrue("expect true", check2.shouldExpectAfterExtract(PackageId.fromString("my_packages:test:1.0")));
}