### Question:
Time { public static String writeTime(OffsetDateTime time) throws DateTimeParseException { return ISO_OFFSET_DATE_TIME.format(time); } private  Time(); static OffsetDateTime parseTime(String time); static String writeTime(OffsetDateTime time);  }### Answer:
@Test void testSerializeDateOffset() { assertThat(Time.writeTime(OffsetDateTime.of( LocalDateTime.of(2020, 8, 3, 18, 10, 0, 0), ZoneOffset.ofHours(2) ))).isEqualTo("2020-08-03T18:10:00+02:00"); }