ClassPool pool = ClassPool.getDefault();
generate(pool);
CtClass clazz = pool.get("test.ScannerTest$GeneratedTest");
CtMethod method = clazz.getDeclaredMethod("doit");
SubroutineScanner scanner = new SubroutineScanner();
Subroutine[] subs = scanner.scan(method.getMethodInfo2());
verifySubroutine(subs, 31, 31, new int[]{125, 25});
verifySubroutine(subs, 32, 31, new int[]{125, 25});
verifySubroutine(subs, 33, 31, new int[]{125, 25});
verifySubroutine(subs, 60, 31, new int[]{125, 25});