How to mock a class which has a constructor with parameter of mock object using JMock ?
I need to cover the below line of code in my method using JMock.
Search search = Search(request);
In Unit test method I created mock object for request, but I am not able to mock Search because Search has constructor with parameter of mock object request (here I mocked request)
Any help is highly appreciated.