@Test
  public void checkHandshakeVersionThrowsWhenNotCurrentVersion() throws IOException {
    final DataInput dataInput = mock(DataInput.class);
    when(dataInput.readByte()).thenReturn((byte) 1);

    assertThatThrownBy(() -> Connection.checkHandshakeVersion(dataInput))
        .isInstanceOf(IllegalStateException.class);

    verify(dataInput).readByte();
    verifyNoMoreInteractions(dataInput);
  }
Test whether suspicion is raised about a member that closes its shared/unordered TCPConduit
connection
geode-core/src/test/java/org/apache/geode/internal/tcp/ConnectionTest.java