### Question:
KeycloakRestTemplateCustomizer implements RestTemplateCustomizer { @Override public void customize(RestTemplate restTemplate) { restTemplate.getInterceptors().add(keycloakInterceptor); } KeycloakRestTemplateCustomizer(); protected  KeycloakRestTemplateCustomizer(
            KeycloakSecurityContextClientRequestInterceptor keycloakInterceptor
    ); @Override void customize(RestTemplate restTemplate);  }### Answer:
@Test public void interceptorIsAddedToRequest() { RestTemplate restTemplate = new RestTemplate(); customizer.customize(restTemplate); assertTrue(restTemplate.getInterceptors().contains(interceptor)); }