@Test
void equals_hashCode() {

    long millis = 37;
    Distance distance = Distance.ofMillis(millis);
    assertThat(distance)
            .isEqualTo(distance)
            .isEqualTo(Distance.ofMillis(millis))
            .isNotEqualTo(null)
            .isNotEqualTo(millis)
            .isNotEqualTo(Distance.ofMillis(millis + 1))
            .hasSameHashCodeAs(Distance.ofMillis(millis));
}