EasyMockprovidesMockObjectsforinterfacesinJUnittestsbygeneratingthemontheflyusingJava'sproxymechanism.DuetoEasyMock'suniquestyleofrecordingexpectations,mostrefactoringswillnotaffecttheMockObjects.SoEasyMockisaperfectfitforTest-DrivenDevelopment.