### Question:
UTCDateOnlyField extends AbstractField<LocalDate> { @Override public byte[] getBytes() { return DATE_FORMATTER.format(value).getBytes(US_ASCII); } 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 testGetBytes() throws Exception { int tag = new Random().nextInt(); byte[] bytes = DATE_STR.getBytes(); UTCDateOnlyField field = new UTCDateOnlyField(tag, bytes); assertArrayEquals(bytes, field.getBytes()); }