@Test
public void testLegacy() throws AccessPermissionException {

    Metadata m = getMetadata(false, false);
    //legacy behavior; don't bother checking
    AccessChecker checker = new AccessChecker();
    checker.check(m);
    assertTrue("no exception", true);
    m = getMetadata(false, true);
    assertTrue("no exception", true);
    checker.check(m);
    m = getMetadata(true, true);
    assertTrue("no exception", true);
    checker.check(m);
}