InjectMocksException

I am getting this error while testing PortfoiloManagerImpl class.can anyone please tell me what is this error about?

org.mockito.exceptions.misusing.InjectMocksException:
Cannot instantiate @InjectMocks field named ‘portfolioManager’ of type ‘class com.crio.warmup.stock.portfolio.PortfolioManagerImpl’.
You haven’t provided the instance at field declaration so I tried to construct the instance.
However the constructor or the initialization block threw an exception : null

Have you removed the RestTemplate variable in PortfoiloManagerImpl because it wasn’t being used or removed its constructor?

@yuva I syour issue resolved or not?

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, please feel free to create a new topic and post this question as a reference link in the description of the new topic.