@Test
public void maxHandlesDifferentUnits() {

    Duration sixtyOneMinutes = Duration.ofMinutes(61);
    Duration oneHour = Duration.ofHours(1);
    assertThat(Temporals.max(sixtyOneMinutes, oneHour)).isEqualTo(sixtyOneMinutes);
}