Reproduces issues with RestTemplate in the comments in SPR-8016