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