@Test public void createInstrumentation_microbenchmark() throws Exception {
Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("microbenchmark", int.class);
Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);
assertEquals(benchmarkMethod, instrumentation.benchmarkMethod());
assertEquals(instrument, instrumentation.instrument());
assertEquals(RuntimeWorker.Micro.class, instrumentation.workerClass());
}
@Test public void createInstrumentation_picobenchmark() throws Exception {
Method benchmarkMethod = RuntimeBenchmark.class.getDeclaredMethod("picobenchmark", long.class);
Instrumentation instrumentation = instrument.createInstrumentation(benchmarkMethod);