restTemplate is null

When AlphavantageServiceTest is run, there is an exception.
When debugged, could see restTemplate is null. I am getting restTemplate from the constructor.
Also buildUri is returning result when checked in browser.
I am doing something like this:
String result = restTemplate.getForObject(url, String.class);
Already referred,

Can you refer to this threads

Closing this topic as there is no response since last 12 hours. Please feel free to create a new topic and post this question as a reference link in the description of the new topic.