 <p>i do not know which mock implementation you use it. But <a href="http://www.easymock.org" rel="nofollow noreferrer">EasyMock</a> has an extension available at the EasyMock home page that generate mock Objects for classes. See your mock implementation whether it does not support mock Objects for classes.</p> <p>regards,</p>