I understand that you have 2 paths to walk you could mock the service, example framework, and test your method or you could initialize your service and test your method.
bhaskar hazarika wrote:Thanks Carles..
I have one more concern as my service class is returning the adaptor class do i need to initialize my adaptor class too.??
Depends completely on your code and which path you have choosen mock or initialize
Then I assume that when you initialize your Spring context and you get your service from it,
your adaptor is already initialized (in the Spring context) or is initialized by your service class.