I have setup a RestTemplate to collect data from an url.
My requirement is to test this code and more importantly the serializer, so given a piece of JSON how do I test that all the values come through to the instances of merchants correctly.
I don't know which serializer is used by RestTemplate to serialize JSON into objects.
RestTemplate template = new RestTemplate();
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
HttpEntity<String> request = new HttpEntity<>("", headers);
ResponseEntity<InboundMerchants> result = template.exchange(
        String.format("%s%s", uri, url),
        HttpMethod.GET,
        request,
        InboundMerchants.class);
InboundMerchants merchants = result.getBody();
return merchants == null
        ? Lists.newArrayList()
        : merchants.getMerchants();