@Test(expected = IllegalStateException.class)
public void testPropertyWitInconvertibleValue() {

    NodeContext nodeContext = new NodeContextImpl("/apps/test/node4", Paths.get("node4"), Paths.get(""));
    Map<String, DocViewProperty> props = new HashMap<>();
    DocViewProperty prop = new DocViewProperty(Property.JCR_CREATED, new String[] { "some-invalid-value" }, true, PropertyType.DATE);
    props.put(Property.JCR_CREATED, prop);
    props.put(NameConstants.JCR_PRIMARYTYPE.toString(), new DocViewProperty(NameConstants.JCR_PRIMARYTYPE.toString(),
            new String[] { JcrConstants.NT_FILE }, false, PropertyType.STRING));
    // nt:file is only supposed to have jcr:created property
    DocViewNode node = new DocViewNode("jcr:root", "jcr:root", null, props, null, JcrConstants.NT_FILE);
    validator.validate(node, nodeContext, false);
}