u = (User) umgr.getAuthorizable(uID);
Impersonation uImpl = u.getImpersonation();
if (!uImpl.allows(buildSubject(otherP))) {
// ... trying to modify 'impersonators of another user must succeed
assertTrue(uImpl.grantImpersonation(otherP));
assertTrue(uImpl.allows(buildSubject(otherP)));
uImpl.revokeImpersonation(otherP);
} else {
throw new NotExecutableException("Cannot execute test. OtherP can already impersonate UID-user.");
}
}