private static void startServer(String url) throws Exception {
   assertNull(driver);
   // only load the test driver if we are testing locally - for integration tests, we want to
   // test on a wider scale
   if (PhoenixEmbeddedDriver.isTestUrl(url)) {
     driver = initDriver(ReadOnlyProps.EMPTY_PROPS);
     assertTrue(DriverManager.getDriver(url) == driver);
     driver.connect(url, PropertiesUtil.deepCopy(TEST_PROPERTIES));
   }
 }
 @AfterClass
 public static void doTeardown() throws Exception {
   if (driver != null) {
     try {
       driver.close();
     } finally {
       PhoenixTestDriver driver = BaseConnectionlessQueryTest.driver;
       BaseConnectionlessQueryTest.driver = null;
       DriverManager.deregisterDriver(driver);
     }
   }
 }