it('should call PUT password resource', () => {
        spyOn($window, 'btoa').and.returnValue(dataEncoded);
        $httpBackend.whenPUT(`/${route}/password/id`, {credentials: dataEncoded}).respond(() => [200]);

        authenticationResource.updatePassword(data, 'id').then((respond) => {