*/
public void testUpgrade() throws Exception {
File upgradeDir = new File(testData, "upgrade");
UpgradeMain upgrade = new UpgradeMain(upgradeDir, upgradeDir);
upgrade.runUpgrade();
zks = new ZooKeeperServer(upgradeDir, upgradeDir, 3000);
SyncRequestProcessor.snapCount = 1000;
final int PORT = Integer.parseInt(HOSTPORT.split(":")[1]);
NIOServerCnxn.Factory f = new NIOServerCnxn.Factory(PORT);
f.startup(zks);
LOG.info("starting up the zookeeper server .. waiting");