My previous topic link :
I went through all the links which you had provided. I still got
com.crio.warmup.stock.portfolio.PortfolioManagerTest > calculateExtrapolatedAnnualizedReturn() FAILED
java.lang.NullPointerException at PortfolioManagerTest.java:117
So, i did null check for restTemplate in “getStockQuote()” and if null, delegated to AlphavantageService. After that build is successful but I am getting spotbug error, which says “Bug type DLS_DEAD_LOCAL_STORE”. But i could see the local variable being used.