public void testReusedLocalMerge() throws Exception {
CtMethod method = ClassPool.getDefault().getMethod(
getClass().getName() + "$Dummy", "reusedLocalMerge");
MethodInfo info = method.getMethodInfo2();
Analyzer analyzer = new Analyzer();
Frame[] frames = analyzer.analyze(method.getDeclaringClass(), info);
assertNotNull(frames);
int pos = findOpcode(info, Opcode.RETURN);
Frame frame = frames[pos];
assertEquals("java.lang.Object", frame.getLocal(2).getCtClass().getName());
}