partial mocking of objects using EasyMock
EasyMock.createMock(class) mocks all the methods in the class.
To mock only some methods of the class use
EasyMock.createMockBuilder(class).addMockedMethod("MethodNameAsString").createMock();
reference: http://www.easymock.org/EasyMock3_0_Documentation.html (search for partial mocking)
http://code.google.com/p/jmockit/source/browse/trunk/samples/easymock/test/org/easymock/samples/ConstructorCalledMockTest.java?spec=svn1130&r=1130










