jMock is a library for testing Java code using mock objects.

See: Description

User API 
Package Description
org.jmock  
org.jmock.builder  
Extension API 
Package Description
org.jmock.core  
org.jmock.core.constraint
A collection of commonly useful constraints
org.jmock.core.matcher  
org.jmock.core.stub  
org.jmock.util  
Optional Extensions 
Package Description
org.jmock.cglib  
Legacy API 
Package Description
org.jmock.expectation  
Other Packages 
Package Description
atest.jmock  
atest.jmock.cglib