Any xUnit framework can be used to write tests, e.g. jUnit or TestNG. Tests development EasyMock objects are programmed in the following steps: Mock objects are createdExpectations are recordedMock objects are switched to ???replay??? stateActions are executed on mock objectsExpectations are verified for mock objects Now let's provide more details.