I made a subclass of MKMapView. In unit test, I want to know when I invoke a certain method of this subclass, that a corresponding MKMapView method is invoked and the class of the argument. Can I use OCMock to accomplish this?
EDIT:
I accepted the answer, but I want to clarify that my question was on when the super class cannot be directly stand-in in the unit test (obviously so, because that's how inheritance works). And it seems like both OCMock and OCMockito can only be used for objects that are injecting into the class under the test. So basically, I think I need to resort to manually swizzle them.