@Test
public void maxHandlesSameUnit() {

    Duration hundredMillis = Duration.ofMillis(100);
    Duration thousandMillis = Duration.ofMillis(1000);
    assertThat(Temporals.max(hundredMillis, thousandMillis)).isEqualTo(thousandMillis);
}