EasyMock This project gives some examples of EasyMock features to replace FileWriter in a test suite. Examples : createMock replay verify expect expectLastCall andReturn andThrow atLeastOnce