anchor.diff:  }
   ----
   
  -In that case, we can tell Spring Security to include a default `OAuth2User` using the `SecurityMockServerConfigurers#oauth2User` method, like so:
  +In that case, we can tell Spring Security to include a default `OAuth2User` using the `SecurityMockServerConfigurers#mockOAuth2Login` method, like so:
   
   [source,java]
   ----
  
positive.code: ==== `mockJwt() WebTestClientConfigurer`
  
  The first way is via a `WebTestClientConfigurer`.
  The simplest of these would look something like this:
  
  [source,java]
  ----
  
negative.code: ----
  
  Simulating this handshake with the authorization server could be cumbersome.
  Instead, you can use `SecurityMockServerConfigurers#mockOAuth2Client` to add a `OAuth2AuthorizedClient` into a mock `ServerOAuth2AuthorizedClientRepository`:
  
  [source,java]
  ----
  