invocation = new InvocationBuilder().args(" ").mock("mock").toInvocation();
}
@Test
public void shouldKnowIfIsEqualTo() {
Invocation equal = new InvocationBuilder().args(" ").mock("mock").toInvocation();
Invocation nonEqual = new InvocationBuilder().args("X").mock("mock").toInvocation();
Invocation withNewStringInstance = new InvocationBuilder().args(new String(" ")).mock("mock").toInvocation();
assertFalse(invocation.equals(null));
assertFalse(invocation.equals(""));
assertTrue(invocation.equals(equal));
assertFalse(invocation.equals(nonEqual));