### Question:
UTCDateOnlyField extends AbstractField<LocalDate> { public static LocalDate parse(String timestampString) throws ParseException { if (timestampString != null) { int len = timestampString.length(); if (len < 8) { throw new ParseException("Unparseable date: '" + timestampString + "'", 0); } else if (len == 8) { return DATE_FORMATTER.parseLocalDate(timestampString); } else { return DATE_FORMATTER.parseLocalDate(timestampString.substring(0, 8)); } } throw new ParseException("Date is null", 0); } UTCDateOnlyField(int tagNum, byte[] bytes);  UTCDateOnlyField(int tagNum, String timestampString);  UTCDateOnlyField(int tagNum, LocalDate value); static LocalDate parse(String timestampString); static LocalDate parse(byte[] bytes); @Override byte[] getBytes(); @Override LocalDate getValue(); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testParse() throws Exception { assertEquals(testDate, UTCDateOnlyField.parse((DATE_STR.getBytes()))); }