// Test fix to http://issues.appfuse.org/browse/APF-96
public void testAddAdminRoleWhenAlreadyHasUserRole() throws Exception {
UserManager userManager = (UserManager) makeInterceptedTarget();
User user = new User("user");
user.getRoles().add(new Role(Constants.ADMIN_ROLE));
user.getRoles().add(new Role(Constants.USER_ROLE));
try {
userManager.saveUser(user);
fail("AccessDeniedException not thrown");
} catch (AccessDeniedException expected) {