@Test
public void hashCode_twoDifferentInstancesSameId_haveSameHashCode() {

    // given
    UUID uuid = UUID.randomUUID();
    UUIDTimeoutId instance1 = new UUIDTimeoutId(uuid);
    UUIDTimeoutId instance2 = new UUIDTimeoutId(uuid);
    // when
    int hc1 = instance1.hashCode();
    int hc2 = instance2.hashCode();
    // then
    assertThat("Expected both hash codes to be equal", hc1, equalTo(hc2));
}