### Question:
BaseDateTimeType extends PrimitiveType<Date> { public String toHumanDisplay() { return DateTimeUtil.toHumanDisplay(getTimeZone(), getPrecision(), getValue(), getValueAsString()); } BaseDateTimeType();  BaseDateTimeType(Date theDate, TemporalPrecisionEnum thePrecision);  BaseDateTimeType(Date theDate, TemporalPrecisionEnum thePrecision, TimeZone theTimeZone);  BaseDateTimeType(String theString); void add(int theField, int theValue); boolean after(DateTimeType theDateTimeType); boolean before(DateTimeType theDateTimeType); Integer getDay(); Integer getHour(); Integer getMillis(); Integer getMinute(); Integer getMonth(); float getSecondsMilli(); Long getNanos(); TemporalPrecisionEnum getPrecision(); Integer getSecond(); TimeZone getTimeZone(); GregorianCalendar getValueAsCalendar(); Integer getYear(); boolean isTimeZoneZulu(); boolean isToday(); BaseDateTimeType setDay(int theDay); BaseDateTimeType setHour(int theHour); BaseDateTimeType setMillis(int theMillis); BaseDateTimeType setMinute(int theMinute); BaseDateTimeType setMonth(int theMonth); BaseDateTimeType setNanos(long theNanos); void setPrecision(TemporalPrecisionEnum thePrecision); BaseDateTimeType setSecond(int theSecond); BaseDateTimeType setTimeZone(TimeZone theTimeZone); BaseDateTimeType setTimeZoneZulu(boolean theTimeZoneZulu); @Override BaseDateTimeType setValue(Date theValue); void setValue(Date theValue, TemporalPrecisionEnum thePrecision); @Override void setValueAsString(String theValue); BaseDateTimeType setYear(int theYear); Calendar toCalendar(); String toHumanDisplay(); String toHumanDisplayLocalTimezone(); @Override boolean isDateTime(); @Override BaseDateTimeType dateTimeValue(); boolean hasTime(); Boolean equalsUsingFhirPathRules(BaseDateTimeType theOther); static Integer compareTimes(BaseDateTimeType left, BaseDateTimeType right, Integer def); @Override String fpValue();  }### Answer:
@Test public void testToHumanDisplayForDateOnlyPrecisions() { Assertions.assertEquals("2019-01-02", new DateTimeType("2019-01-02").toHumanDisplay()); Assertions.assertEquals("2019-01", new DateTimeType("2019-01").toHumanDisplay()); Assertions.assertEquals("2019", new DateTimeType("2019").toHumanDisplay()); }