GateKeeper gateKeeper = new GateKeeper();
User user = helper.loginAsDeveloper();
assertTrue(gateKeeper.ensureRole(user, Role.DEVELOPER, Role.PORTAL_ADMIN));
assertTrue(gateKeeper.ensureRole(user, Role.DEVELOPER.toString(),
Role.PORTAL_READONLY.toString()));
}
@Test
public void ensureRoleThrowsExceptionForNonExistingRole() {