/** {@inheritDoc} */
  @Override
  public void setUpUnitaryBench(AgentNumberBenchRun run) throws Exception {
    super.setUpUnitaryBench(run);
    Kernels.killAll();
    LoggerUtil.setLoggingEnable(false);
    Kernel kernel = Kernels.create();

    this.emitter = new Emitter();
    kernel.launchLightAgent(this.emitter, run.getNumberOfAgents());

    while (!this.emitter.getState().isAlive()) {
      Thread.yield();
    }
  }
 /** {@inheritDoc} */
 @Override
 public void tearDownUnitaryBench(AgentNumberBenchRun run) throws Exception {
   Kernels.killAll();
   this.emitter = null;
   writeRecord(
       run.getName(),
       run.getNumberOfAgents(),
       getNumberOfTests(),
       run.getRunDuration(),
       run.getTestAverageDuration(),
       getSystemLoadAverage());
 }