I just started mocking different layers of our application. I came to a point where one of my mock objects is returning NPE when it calls a final class static method. Is th
Mockito doesn't support mocking a final class.Have a look at PowerMock.It allows you to mock static methods and classes. It can work with Mockito, documentation explains how to do that.