### Question:
LocalDateConverter implements BytesConverter<LocalDate> { @Override public byte[] toBytes(LocalDate value) { return longConverter.toBytes(value.toEpochDay()); } LocalDateConverter(BytesConverter<Long> longConverter); @Override LocalDate fromBytes(byte[] bytes); @Override byte[] toBytes(LocalDate value); static final BytesConverter<LocalDate> INSTANCE; }### Answer:
@Test public void testToBytes() { assertArrayEquals(new byte[]{64, 58}, LocalDateConverter.INSTANCE.toBytes(LocalDate.of(2015, 1, 7))); }