Node methodInvocationRight = addToRight(METHOD_INVOCATION, "foo.beer();");
createEditScript();
assertThat(fEditScript.size(), is(1));
TreeEditOperation operation = fEditScript.get(0);
assertThat(operation.getOperationType(), is(OperationType.UPDATE));
UpdateOperation update = (UpdateOperation) operation;
assertThat(update.getNodeToUpdate(), is(methodInvocationLeft));
assertThat(update.getNewNode(), is(methodInvocationRight));
assertThat(update.getOldValue(), is("foo.bar();"));
}