Value doubleBinaryValue =
superuser.getValueFactory().createValue(NodeTypeUtil.getValueOfType(session, PropertyType.DOUBLE).getString(), PropertyType.BINARY);
assertTrue("canSetProperty(String propertyName, Value value) must return " +
"true if the property is of type Double and value is a UTF-8 " +
"BinaryValue that is convertible to a DoubleValue",
nodeType.canSetProperty(propDef.getName(), doubleBinaryValue));
Value dateValue = NodeTypeUtil.getValueOfType(session, PropertyType.DATE);
assertTrue("canSetProperty(String propertyName, Value value) must return " +
"true if the property is of type Double and value is a DateValue",
nodeType.canSetProperty(propDef.getName(), dateValue));