When we run unittest Ocelot by command dotnet vstest with the latest version dotnet-sdk-10.0.100-preview.2.25125.6, it failed with error: The provided expression should be of type Microsoft.AspNetCore.Authentication.AuthenticationService but was Microsoft.AspNetCore.Authentication.AuthenticationServiceImpl.
After investigating, we found that this test failed due to the implementation was refactored in dotnet/aspnetcore#59557 to return a more derived type.
More detailed information about this issue, please refer to this comment:
dotnet/aspnetcore#60645 (comment)