@Test
  public void testHigherVersionedClient() {
    Integer port1 = (server1
        .invoke(BackwardCompatibilityHigherVersionClientDUnitTest::createServerCache));

    client1.invoke(
        BackwardCompatibilityHigherVersionClientDUnitTest::setHandshakeVersionForTesting);

    assertThatThrownBy(() -> client1.invoke(() -> BackwardCompatibilityHigherVersionClientDUnitTest
        .createClientCache(NetworkUtils.getServerHostName(server1.getHost()), port1)))
            .getCause().isInstanceOf(ServerRefusedConnectionException.class)
            .hasMessageContaining("refused connection: Peer or client version with ordinal");

    client1.invoke(
        BackwardCompatibilityHigherVersionClientDUnitTest::verifyConnectionToServerFailed);
  }
Verify that server responds to a higher versioned client.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/BackwardCompatibilityHigherVersionClientDUnitTest.java