Unit test for v2 authentication with a client.
Use v2 identity in AuthenticatedClient.