@Test
 @Ignore
 public void testPerfOneNode() throws Exception {
   tearDown();
   tp = new ThreadPool();
   tp.init(null);
   tp.startUp(null);
   nodes = new ArrayList<ClusterNode>();
   nodes.add(new ClusterNode("localhost", 40101, (short) 1, (short) 1));
   nodeString = mapper.writeValueAsString(nodes);
   SyncManager sm = new SyncManager();
   FloodlightModuleContext fmc = new FloodlightModuleContext();
   setupSyncManager(fmc, sm, nodes.get(0));
   fmc.addService(ISyncService.class, sm);
   SyncTorture st = new SyncTorture();
   // fmc.addConfigParam(st, "iterations", "1");
   st.init(fmc);
   st.startUp(fmc);
   Thread.sleep(10000);
 }
  protected void setupSyncManager(
      FloodlightModuleContext fmc, SyncManager syncManager, ClusterNode thisNode) throws Exception {
    fmc.addService(IThreadPoolService.class, tp);
    fmc.addService(IDebugCounterService.class, new NullDebugCounter());
    fmc.addConfigParam(syncManager, "configProviders", PropertyCCProvider.class.getName());
    fmc.addConfigParam(syncManager, "nodes", nodeString);
    fmc.addConfigParam(syncManager, "thisNode", "" + thisNode.getNodeId());
    fmc.addConfigParam(syncManager, "persistenceEnabled", "false");
    fmc.addConfigParam(syncManager, "authScheme", "CHALLENGE_RESPONSE");
    fmc.addConfigParam(syncManager, "keyStorePath", keyStoreFile.getAbsolutePath());
    fmc.addConfigParam(syncManager, "keyStorePassword", keyStorePassword);
    tp.init(fmc);
    syncManager.init(fmc);

    tp.startUp(fmc);
    syncManager.startUp(fmc);

    syncManager.registerStore("global", Scope.GLOBAL);
    syncManager.registerStore("local", Scope.LOCAL);
  }