MyInterface mockObject = createMock(MyInterface.class);
SomeObject param = new SomeObject();
/* the write object is not void and returns an instance of FooOjbect.
* I want to ignore everything to do with FooObject - I do not care what
* it is because I do not store its value. How do I do this? */
mockObject.write(param);
replay(mockObject);
someOtherObjectThatCallsAboveMockObject.process(mockObject);
verify(mockObject);