### Question:
PropertyDefinition extends ItemDefinition implements javax.jcr.nodetype.PropertyDefinition { public static Calendar parseDate( String dateString ) throws IllegalArgumentException { DateTime result = new DateTime(dateString); return result.toCalendar(null); } PropertyDefinition( String declaringNodeTypeName,
                               String name,
                               int requiredType,
                               boolean isAutoCreated,
                               boolean isMandatory,
                               boolean isProtected,
                               boolean isFullTextSearchable,
                               boolean isMultiple,
                               boolean isQueryOrderable,
                               int onParentVersion,
                               List<String> defaultValues,
                               List<String> valueConstraints,
                               List<String> availableQueryOperations,
                               Map<String, NodeType> nodeTypes ); static Calendar parseDate( String dateString ); @Override String getName(); @Override String[] getAvailableQueryOperators(); @Override Value[] getDefaultValues(); @Override int getRequiredType(); @Override String[] getValueConstraints(); @Override boolean isFullTextSearchable(); @Override boolean isMultiple(); @Override boolean isQueryOrderable(); @Override int hashCode(); @Override boolean equals( Object obj ); @Override String toString();  }### Answer:
@Test public void shouldParseDate() { PropertyDefinition.parseDate("2010-03-22T01:02:03.456-0800"); PropertyDefinition.parseDate("2010-03-22T01:02:03.456-08:00"); PropertyDefinition.parseDate("2010-03-22T01:02:03.456+0800"); PropertyDefinition.parseDate("2010-03-22T01:02:03.456+08:00"); PropertyDefinition.parseDate("2010-03-22T01:02:03.456Z"); }