/**
   * Write out the results of all of the test runs. This writes out the collected point data to an
   * XML file located in target/jetm beneath the working directory.
   *
   * @throws Exception If any errors occur during the write-out.
   */
  @AfterClass
  public static void tearDownAfterClass() throws Exception {
    if (etmMonitor != null) {
      etmMonitor.stop();

      final File timingDirectory = new File("target/jetm");
      FileUtils.forceMkdir(timingDirectory);

      final File timingFile = new File(timingDirectory, "Timing" + ".xml");
      final FileWriter writer = new FileWriter(timingFile);
      try {
        etmMonitor.render(new BindingMeasurementRenderer(new XmlAggregateBinder(), writer));
      } finally {
        writer.close();
      }
    }
  }
 public void tearDown() {
   etmMonitor.stop();
 }