final TestPrivilegedExceptionAction pea1
= new TestPrivilegedExceptionAction(perm1);
Subject subj = new Subject();
Principal prin = new FakePrincipal("DoPrivilegedExceptionTest");
subj.getPrincipals().add(prin);
SubjectDomainCombiner comb = new SubjectDomainCombiner(subj);
AccessControlContext acc = new AccessControlContext(
AccessController.getContext(), comb);
obj = AccessController.doPrivileged(
new PrivilegedExceptionAction() {
public Object run() throws Exception {