I was using OCMock for stubbing class lvl methods and it worked well. Now I need to achieve the same behaviour with OCMockito.
In OCMock I have following:
_mock = mockClass([MySingleton class]);
OCMStub([_mock sharedSingleton]).andReturn(_mock);
In my case I have to stub sharedSingleton method because it is used in multiple places during tests.