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

        authenticationResource.resetPassword(data, 'token').then((respond) => {