I have a situation where first argument of method
findUser is something I cant mock
Session.get(), So it will throw exception but still I want mock
findUser. Any clue guys how to do this. I am using Mockito here.
Emp emp = findUser(Session.get(), "Admin");
Note Where Session isn't a static class. It is a static variable of the same class.