@SuppressWarnings("deprecation")
  private void legacyConnect(Properties properties) {
    ds = DistributedSystem.connect(properties);
    cache = (GemFireCacheImpl) CacheFactory.create(ds);
  }
TODO : Add more tests for error-catch, different type of results etc
geode-gfsh/src/integrationTest/java/org/apache/geode/management/internal/cli/HeadlessGfshIntegrationTest.java