factored out easymock