label = new Label();
}
@After
public void verify() {
MethodRecorder actual = new MethodRecorder() {
@Override
public void visitLabel(Label label) {
// Ignore labels inserted by the tracker
}
};
FrameTracker tracker = new FrameTracker(actual, "Test");
before.accept(tracker);
mv.instructions.accept(tracker);
tracker.insertFrame();
MethodRecorder expected = new MethodRecorder();
before.accept(expected);
mv.instructions.accept(expected);
after.accept(expected);
assertEquals(expected, actual);