@Test
public void shouldAllowNullValue() throws Exception {

    NodeType constrainedType = validateTypeDefinition();
    JcrPropertyDefinition prop = propertyDefinitionFor(constrainedType, TestLexicon.CONSTRAINED_BINARY);
    assertThat(prop.satisfiesConstraints((Value)null, session), is(false));
}