}
}
private void testFrames(Class<?> target) throws IOException {
IRuntime runtime = new SystemPropertiesRuntime();
Instrumenter instrumenter = new Instrumenter(runtime);
byte[] source = TargetLoader.getClassDataAsBytes(target);
source = calculateFrames(source);
byte[] actual = instrumenter.instrument(source);
byte[] expected = calculateFrames(actual);
assertEquals(dump(expected), dump(actual));
}