public void shouldParseNotPropertyExistanceFromPropertyNameWithSelectorNameAndPropertyNameFollowedByIsNull() {
Constraint constraint = parser.parsePropertyExistance(tokens("tableA.property1 IS NULL"), typeSystem, mock(Source.class));
assertThat(constraint, is(instanceOf(Not.class)));
Not not = (Not)constraint;
assertThat(not.getConstraint(), is(instanceOf(PropertyExistence.class)));
PropertyExistence p = (PropertyExistence)not.getConstraint();
assertThat(p.getPropertyName(), is("property1"));
assertThat(p.selectorName(), is(selectorName("tableA")));
}