@Test
public void shouldParseConstraintFromStringWithNotSameNodeExpression() {
Constraint constraint = parser.parseConstraint(tokens("NOT(ISSAMENODE(tableA,'/a/b/c'))"), typeSystem, mock(Source.class));
assertThat(constraint, is(instanceOf(Not.class)));
Not not = (Not)constraint;
assertThat(not.getConstraint(), is(instanceOf(SameNode.class)));
SameNode same = (SameNode)not.getConstraint();
assertThat(same.selectorName(), is(selectorName("tableA")));
assertThat(same.getPath(), is("/a/b/c"));
}