sm.checkPermission(new RuntimePermission("A"));
checkPermissionFail(new RuntimePermission("B"));
checkPermissionFail(new RuntimePermission("C"));
checkPermissionFail(new RuntimePermission("D"));
policy.grant(Test.class, null,
new Permission[]{ new RuntimePermission("B") });
try {
policy.grant(Test.class, null,
new Permission[]{ new RuntimePermission("C") });
throw new Error("grant of C should not succeed");