@Test
public void shouldAllowValidReferenceValues() throws Exception {

    NodeType constrainedType = validateTypeDefinition();
    JcrPropertyDefinition prop = propertyDefinitionFor(constrainedType, TestLexicon.CONSTRAINED_REFERENCE);
    Value value = session.getValueFactory().createValue(session.getRootNode());
    assertThat(satisfiesConstraints(prop, new Value[] {}), is(true));
    assertThat(satisfiesConstraints(prop, new Value[] {value}), is(true));
}