@Test
public void maxHandlesEqualValue() {

    Duration oneMilli = Duration.ofMillis(1);
    Duration oneMillionNanos = Duration.ofNanos(1_000_000);
    assertThat(Temporals.max(oneMilli, oneMillionNanos)).isEqualTo(oneMilli);
    assertThat(Temporals.max(oneMilli, oneMillionNanos)).isEqualTo(oneMillionNanos);
}