Buggy code:
public class MethodUtilsTestCase extends TestCase { protected PrivateBeanFactory privateBeanFactory ; public MethodUtilsTestCase ( String name ) { } public void setUp ( ) { } public static Test suite ( ) { } public void tearDown ( ) { } public void testGetAccessibleMethod ( ) { } public void testinvokeMethod2 ( ) { } public void testInvokeMethod ( ) throws Exception { AbstractParent parent = new AlphaBean ( "parent" ) ; BetaBean childOne = new BetaBean ( "ChildOne" ) ; assertEquals ( "Oh<seq2seq4repair_space>no!<seq2seq4repair_space>Badly<seq2seq4repair_space>coded<seq2seq4repair_space>test<seq2seq4repair_space>case!<seq2seq4repair_space>(1)" , "ChildOne" , parent . testAddChild ( childOne ) ) ; assertEquals ( "Cannot<seq2seq4repair_space>invoke<seq2seq4repair_space>through<seq2seq4repair_space>abstract<seq2seq4repair_space>class<seq2seq4repair_space>(1)" , "ChildOne" , MethodUtils . invokeMethod ( parent , "testAddChild" , childOne ) ) ; AlphaBean childTwo = new AlphaBean ( "ChildTwo" ) ; assertEquals ( "Oh<seq2seq4repair_space>no!<seq2seq4repair_space>Badly<seq2seq4repair_space>coded<seq2seq4repair_space>test<seq2seq4repair_space>case!<seq2seq4repair_space>(2)" , "ChildTwo" , parent . testAddChild ( childTwo ) ) ; assertEquals ( "Cannot<seq2seq4repair_space>invoke<seq2seq4repair_space>through<seq2seq4repair_space>interface<seq2seq4repair_space>(1)" , "ChildTwo" , MethodUtils . invokeMethod ( parent , "testAddChild" , childTwo ) ) ; Object [ ] params = new Object [ 2 ] ; assertEquals ( "Oh<seq2seq4repair_space>no!<seq2seq4repair_space>Badly<seq2seq4repair_space>coded<seq2seq4repair_space>test<seq2seq4repair_space>case!<seq2seq4repair_space>(3)" , "ChildOne" , parent . testAddChild2 ( "parameter" , childOne ) ) ; params [ 0 ] = "parameter" ; params [ 1 ] = childOne ; assertEquals ( "Cannot<seq2seq4repair_space>invoke<seq2seq4repair_space>through<seq2seq4repair_space>abstract<seq2seq4repair_space>class<seq2seq4repair_space>(1)" , "ChildOne" , MethodUtils . invokeMethod ( parent , "testAddChild2" , params ) ) ; assertEquals ( "Oh<seq2seq4repair_space>no!<seq2seq4repair_space>Badly<seq2seq4repair_space>coded<seq2seq4repair_space>test<seq2seq4repair_space>case!<seq2seq4repair_space>(4)" , "ChildTwo" , parent . testAddChild2 ( "parameter" , childTwo ) ) ; params [ 0 ] = "parameter" ; params [ 1 ] = childTwo ; assertEquals ( "Cannot<seq2seq4repair_space>invoke<seq2seq4repair_space>through<seq2seq4repair_space>abstract<seq2seq4repair_space>class<seq2seq4repair_space>(1)" , "ChildTwo" , MethodUtils . invokeMethod ( parent , "testAddChild2" , params ) ) ; try { parent = new AlphaBean ( "parent" ) ; childOne = new BetaBean ( "ChildOne" ) ; MethodUtils . invokeMethod ( parent , "bogus" , childOne ) ; fail ( "No<seq2seq4repair_space>exception<seq2seq4repair_space>thrown<seq2seq4repair_space>when<seq2seq4repair_space>no<seq2seq4repair_space>appropriate<seq2seq4repair_space>method<seq2seq4repair_space>exists" ) ; <START_BUG> } catch ( NoSuchMethodException e ) { <END_BUG> } MethodUtils . invokeMethod ( parent , "getName" , null ) ; MethodUtils . invokeMethod ( parent , "getName" , null , null ) ; MethodUtils . invokeMethod ( parent , "getName" , null ) ; MethodUtils . invokeMethod ( parent , "getName" , null , null ) ; } public void testInvokeMethodWithPrimitives ( ) throws Exception { } public void testSimpleStatic1 ( ) { } public void testSimpleStatic2 ( ) { } public void testSimpleStatic3 ( ) { } public void testPublicSub ( ) throws Exception { } }

Fix:
} catch ( ReflectionException e ) {