Moxie is a simple, lightweight, and easy-to-use mocking library written in Java.
Moxie will allow you to create mock objects in Java and its goal is to provide the simplest syntax of any Java mocking library.
Moxie is a cross-platform utility capable of running on any operating system that comes with Java support (e.g. Mac OS X, Windows, Linux).
Here are some key features of "Moxie":
· Set up any expectation in one Java statement
· JUnit 4 to integration to automatically create and verify mocks
· Method name / signature changes using refactoring tools will be reflected in your tests.