I have got 4 classes lets says A, B, C, D each calling on methods from another one.
now I have mocked class A, and want to mock a method using mockito
A
Adding RETURNS_DEEP_STUBS did the trick:
A a = Mockito.mock(A.class, Mockito.RETURNS_DEEP_STUBS);