private void stopServer(GfshExecutor gfsh, Path serverDir) {
    CommandStringBuilder command = new CommandStringBuilder(CliStrings.STOP_SERVER)
        .addOption(CliStrings.STOP_SERVER__DIR, serverDir.toString());
    gfsh.execute(command.toString());
  }
Stops all containers that were previously started and cleans up their configurations
geode-assembly/src/upgradeTest/java/org/apache/geode/session/tests/Tomcat8ClientServerRollingUpgradeTest.java