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

See:
          Description

jMock 2
org.jmock The jMock "Domain-Specific Embedded Language" API.
org.jmock.api The stable API that is used to extend jMock at it's published plug-in points.
org.jmock.integration.junit3 Integrates jMock with JUnit 3.
org.jmock.integration.junit4 Integrates jMock with JUnit 4.
org.jmock.lib Implementations of the core interfaces that are used to adjust or extend jMock's basic functionality.
org.jmock.lib.action Actions that fake the behaviour of mocked invocations.
org.jmock.lib.nonstd Non-standard and unsupported/unsupportable classes that are otherwise really useful.
org.jmock.syntax Interfaces that define jMock's Domain Specific Embedded Language.

 

Hamcrest API
org.hamcrest  

 

Hamcrest Matcher Library
org.hamcrest.beans  
org.hamcrest.collection  
org.hamcrest.core  
org.hamcrest.number  
org.hamcrest.object  
org.hamcrest.text  
org.hamcrest.xml  

 

jMock 2 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.

jMock 2:

More information can be found on the jMock website (www.jmock.org).