assertFrames(instrumented, frames);
}
private void assertFrames(byte[] source, boolean expected) {
final boolean[] hasFrames = new boolean[] { false };
new ClassReader(source).accept(new EmptyVisitor() {
@Override
public MethodVisitor visitMethod(int access, String name,
String desc, String signature, String[] exceptions) {
return new EmptyVisitor() {
@Override
public void visitFrame(int type, int nLocal,
Object[] local, int nStack, Object[] stack) {
hasFrames[0] = true;