anchor.diff:      // ... constructor
   
       public AuthnRequest convert(Saml2AuthenticationRequestContext context) {
  +        MySaml2AuthenticationRequestContext myContext = (MySaml2AuthenticationRequestContext) context;
           Issuer issuer = issuerBuilder.buildObject();
  -        issuer.setValue(context.getIssuer());
  +        issuer.setValue(myContext.getIssuer());
   
           AuthnRequest authnRequest = authnRequestBuilder.buildObject();
           authnRequest.setIssuer(issuer);
  -        authnRequest.setDestination(context.getDestination());
  -        authnRequest.setAssertionConsumerServiceURL(context.getAssertionConsumerServiceUrl());
  +        authnRequest.setDestination(myContext.getDestination());
  +        authnRequest.setAssertionConsumerServiceURL(myContext.getAssertionConsumerServiceUrl());
   
           // ... additional settings
   
  -        authRequest.setForceAuthn(context.getForceAuthn());
  +        authRequest.setForceAuthn(myContext.getForceAuthn());
           return authnRequest;
       }
   }
  
positive.code:     private val issuerBuilder: IssuerBuilder? = null
  
      // ... constructor
      override fun convert(context: MySaml2AuthenticationRequestContext): AuthnRequest {
          val issuer: Issuer = issuerBuilder.buildObject()
          issuer.value = context.getIssuer()
          val authnRequest: AuthnRequest = authnRequestBuilder.buildObject()
          authnRequest.issuer = issuer
          authnRequest.destination = context.getDestination()
          authnRequest.assertionConsumerServiceURL = context.getAssertionConsumerServiceUrl()
  
          // ... additional settings
          authRequest.setForceAuthn(context.getForceAuthn())
          return authnRequest
      }
  }
  
negative.code: ----
  @Bean
  Saml2AuthenticationRequestContextResolver authenticationRequestContextResolver() {
      Saml2AuthenticationRequestContextResolver resolver =
              new DefaultSaml2AuthenticationRequestContextResolver();
      return request -> {
          Saml2AuthenticationRequestContext context = resolver.resolve(request);
          return new MySaml2AuthenticationRequestContext(context, request.getParameter("force") != null);
      };
  }
  
  @Bean
  