jMock is a library for testing Java code using mock objects. Mock objects help you design and test the interactions between the objects in your programs.
The jMock package:
New releases and more documentation can be found at the jMock website (www.jmock.org).