assertNodesAreMatched(whileStatementLeft, whileStatementRight);
}
@Test
public void nodesWithDifferentLabelsShouldNotMatch() throws Exception {
Node whileStatementLeft = addToLeft(WHILE_STATEMENT, "i < length");
Node whileStatementRight = addToRight(FOR_STATEMENT, "i < length");
addToNode(whileStatementLeft, METHOD_INVOCATION, "foo.bar();");
addToNode(whileStatementLeft, ASSIGNMENT, "aInt = 24;");
addToNode(whileStatementRight, METHOD_INVOCATION, "foo.bar();");
addToNode(whileStatementRight, ASSIGNMENT, "aInt = 24;");
createMatchSet();