pMock provides support for creating mock objects for use in unit testing.The api is modelled on the jmock mock object framework.