it('should return false when the identity does not have the required authority', function () {
            _stateWithAuthorities(['authorityA', 'authorityB']);
            identityService.getIdentity.andReturn({ authorities: ['authorityC']});

            expect(authorityService.hasAuthority()).toBe(false);