@Test
public void shouldNotAllowInvalidDateValues() throws Exception {

    NodeType constrainedType = validateTypeDefinition();
    JcrPropertyDefinition prop = propertyDefinitionFor(constrainedType, TestLexicon.CONSTRAINED_DATE);
    Value[] values = new Value[] {valueFor("-1945-08-01T01:30:00.000", PropertyType.DATE),
        valueFor("+1945-08-01T01:30:00.000-05:00", PropertyType.DATE),};
    assertThat(satisfiesConstraints(prop, new Value[] {valueFor("+1945-08-01T01:30:00.001Z", PropertyType.DATE)}), is(false));
    assertThat(satisfiesConstraints(prop, values), is(false));
}