@BeforeMethod
 public void buildNode1() throws Exception {
   buildNode("server1");
   // since we store (by default) the index snapshot under the gateway, resetting it will reset the
   // index data as well
   ((InternalNode) node("server1")).injector().getInstance(Gateway.class).reset();
   closeAllNodes();
 }
 @AfterMethod
 public void closeServers() {
   closeAllNodes();
 }
 @AfterClass
 public void closeNodes() {
   client.close();
   closeAllNodes();
 }