@Override
public boolean equals(Object other) {
if (other == this) return true;
if (!(other instanceof IMockInvocation)) return false;
IMockInvocation otherInv = (IMockInvocation) other;
return mockObject.getInstance() == otherInv.getMockObject().getInstance()
&& method.getName().equals(otherInv.getMethod().getName())
&& arguments.equals(otherInv.getArguments());
}