it('should return true when the identity has the required authority', function () {
            _stateWithAuthorities(['authorityA', 'authorityB']);
            identityService.getIdentity.andReturn({ authorities: ['authorityB']});

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