System.setSecurityManager(new SecurityManager());
}
// Run test with AccessController.doPrivilege wrapper
Action dp = new Action("private/private.txt");
MorePermission mp = new MorePermission(dp, false);
LessPermission lp = new LessPermission(mp, false);
try {
lp.takeAction();
} catch (Exception e) {
// verify the test result
assertTrue("It is not the security exception.",
(e instanceof java.security.AccessControlException));
} finally {