@Override
  public final void preTearDown() throws Exception {
    // close client
    client1.invoke(StatsBugDUnitTest::closeCache);

    // close server
    primary.invoke(StatsBugDUnitTest::closeCache);
    secondary.invoke(StatsBugDUnitTest::closeCache);
  }
Create the cache

@param props - properties for DS
@return the cache instance
@throws Exception - thrown if any problem occurs in cache creation
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/ha/StatsBugDUnitTest.java