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