private void verifyListDeployed(int locatorPort) {
    GfshExecution list_deployed = GfshScript
        .of("connect --locator=" + HOSTNAME + "[" + locatorPort + "]")
        .and("list deployed")
        .execute(currentGfsh);
    assertThat(list_deployed.getOutputText())
        .contains("DeployCommandsDUnit1.jar")
        .contains("server1")
        .contains("server2");
    currentGfsh.execute("disconnect");
  }
This test iterates through the versions of Geode and executes client compatibility with
the current version of Geode.
geode-assembly/src/upgradeTest/java/org/apache/geode/management/RollingUpgradeWithGfshDUnitTest.java