perm = new WeblogPermission();
perm.setUser(TestUtils.getManagedUser(user));
perm.setWebsite(TestUtils.getManagedWebsite(testWeblog));
perm.setPending(true);
perm.setPermissionMask(WeblogPermission.AUTHOR);
mgr.savePermissions(perm);
TestUtils.endSession(true);
// get pending permissions for a user
perms = mgr.getPendingPermissions(TestUtils.getManagedUser(testUser));
assertEquals(0, perms.size());