@Test
  public void testParseBooleanFlags() {
    final Queue<String> opts = new LinkedList<>();
    opts.offer("--valueRandom");
    opts.offer("--autoFlush"); // default: false
    opts.offer("--inmemory=true"); // default: false
    opts.offer("--writeToWAL=false"); // default: true
    opts.offer(PerformanceEvaluation.RANDOM_READ);
    opts.offer("1");

    final PerformanceEvaluation.TestOptions options = PerformanceEvaluation.parseOpts(opts);
    assertTrue(options.valueRandom);
    assertTrue(options.autoFlush);
    assertTrue(options.inMemoryCF);
    assertFalse(options.writeToWAL);
    assertEquals(PerformanceEvaluation.RANDOM_READ, options.getCmdName());
    assertEquals(1, options.getNumClientThreads());
  }
Exercise the mr spec writing. Simple assertions to make sure it is basically working.
hbase-diagnostics/src/test/java/org/apache/hadoop/hbase/TestPerformanceEvaluation.java