DefaultTokenInfoRequestExecutor implements TokenInfoRequestExecutor { public static RestTemplate buildRestTemplate() { return buildRestTemplate(TokenResponseErrorHandler.getDefault()); } DefaultTokenInfoRequestExecutor(final String tokenInfoEndpointUrl);  DefaultTokenInfoRequestExecutor(final String tokenInfoEndpointUrl, final RestOperations restOperations); @Override Map<String, Object> getMap(final String accessToken); static RequestEntity<Void> buildRequestEntity(final URI tokenInfoEndpointUri, final String accessToken); static RestTemplate buildRestTemplate(); static RestTemplate buildRestTemplate(final EnumSet<HttpStatus> unhandledStatusSet); static RestTemplate buildRestTemplate(final ResponseErrorHandler responseErrorHandler);  }
@Test public void createRestTemplateWithEnumSet() { RestTemplate restTemplate = buildRestTemplate(EnumSet.of(BAD_REQUEST, UNAUTHORIZED, FORBIDDEN)); Assertions.assertThat(restTemplate).isNotNull(); }