  @Test
  public void testHashCode() {

    StreamConnection identicalStreamConnection = new StreamConnection(StreamConnectionId.of("foo"));
    assertThat(streamConnection.hashCode()).isEqualTo(identicalStreamConnection.hashCode());

    StreamConnection nonIdenticalStreamConnection = new StreamConnection(StreamConnectionId.of("foo1"));
    assertThat(streamConnection.hashCode()).isNotEqualTo(nonIdenticalStreamConnection.hashCode());
  }