DefaultTokenInfoRequestExecutor implements TokenInfoRequestExecutor { @Override public Map<String, Object> getMap(final String accessToken) { return doGetMap(accessToken); } 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 nullResultOnEmptyBody() { DefaultTokenInfoRequestExecutor executor = new DefaultTokenInfoRequestExecutor("http: restOperations); Map<String, Object> result = executor.getMap("1234567890"); Assertions.assertThat(result).isNull(); mockServer.verify(); }