OCMock is an Objective-C implementation of mock objects. This implementation fully utilises the dynamic nature of Objective-C. It creates mock objects on the fly and uses the trampoline pattern so that you can define expectations and stubs using the same syntax that you use to call methods; no strings, no @selector, just method invocations.