@Benchmark
  @Threads(512)
  public void testTinyBundleHarnessStateSampler(HarnessStateTracker state, Blackhole bh)
      throws Exception {
    state.tracker.start("processBundleId");
    for (int i = 0; i < 3; ) {
      state.state1.activate();
      state.state2.activate();
      state.state3.activate();
      // trival code that is being sampled for this state
      i += 1;
      bh.consume(i);
      state.state3.deactivate();
      state.state2.deactivate();
      state.state1.deactivate();
    }
    state.tracker.reset();
  }
@Test
  public void testTinyBundleHarnessStateSampler() throws Exception {
    HarnessStateSampler state = new HarnessStateSampler();
    HarnessStateTracker threadState = new HarnessStateTracker();
    threadState.setup(state);
    new ExecutionStateSamplerBenchmark().testTinyBundleHarnessStateSampler(threadState, blackhole);
    state.tearDown();
    threadState.tearDown();
  }