### Question:
VoidPermission extends BasicPermission { @Override public boolean implies(Permission permission) { return false; } VoidPermission();  VoidPermission(String name);  VoidPermission(String name, String actions); @Override boolean implies(Permission permission);  }### Answer:
@Test public void testImpliedByAllPermission() { Permission allPerm = new AllPermission(); VoidPermission vPerm = new VoidPermission(); Assert.assertTrue(allPerm.implies(vPerm)); Assert.assertTrue(!vPerm.implies(allPerm)); }
@Test public void testNotImplied() { VoidPermission vPerm = new VoidPermission(); FilePermission fPerm = new FilePermission("/scratch/test/*", "read"); Assert.assertTrue(!vPerm.implies(fPerm)); Assert.assertTrue(!fPerm.implies(vPerm)); }
@Test public void testNoImplySelf() { VoidPermission vPerm1 = new VoidPermission(); VoidPermission vPerm2 = new VoidPermission(); Assert.assertTrue(!vPerm1.implies(vPerm2)); Assert.assertTrue(!vPerm2.implies(vPerm1)); Assert.assertTrue(!vPerm1.implies(vPerm1)); }