assertTrue(impersonation.allows(buildSubject(adminPrincipal)));
}
public void testAdminPrincipalAsImpersonator() throws RepositoryException, NotExecutableException {
Principal adminPrincipal = new AdminPrincipal() {
@Override
public String getName() {
return "some-admin-name";
}
};