public async void Test_GivenAUser_WhenIsPasswordChangeRequired_ThenResponseIsNotAltered() { userStoreMock.Setup(mock => mock.IsPasswordChangeRequiredAsync(It.IsAny <CognitoUser>(), It.IsAny <CancellationToken>())).Returns(Task.FromResult(true)).Verifiable(); var output = await userManager.IsPasswordChangeRequiredAsync(GetCognitoUser()).ConfigureAwait(false); Assert.True(output); userStoreMock.Verify(); }