Buggy code:
public class PropertyResolverTest extends WicketTestCase { private static final PropertyResolverConverter CONVERTER = new PropertyResolverConverter ( new ConverterLocator ( ) , Locale . US ) ; private Person person ; @ Override protected void setUp ( ) throws Exception { } @ Override protected void tearDown ( ) throws Exception { } public void testSimpleExpression ( ) throws Exception { } public void testPrimitiveValue ( ) throws Exception { } public void testPathExpression ( ) throws Exception { } public void testNull ( ) throws Exception { } public void testNullCreation ( ) throws Exception { } public void testGetterOnly ( ) throws Exception { } public void testPathExpressionWithConversion ( ) throws Exception { } public void testMapLookup ( ) throws Exception { } public void testMapWithDotLookup ( ) throws Exception { } public void testListLookup ( ) throws Exception { } public void testArrayLookup ( ) throws Exception { } public void testArrayLookupByBrackets ( ) throws Exception { } public void testPropertyByIndexLookup ( ) throws Exception { } public void testGetPropertyByNotExistingIndexArrayLookup ( ) throws Exception { } public void testGetPropertyByNotExistingIndexListLookup ( ) throws Exception { } public void testGetIndexPropertyDirectly ( ) throws Exception { } public void testListSizeLookup ( ) throws Exception { } public void testMapSizeLookup ( ) throws Exception { } public void testArraySizeLookup ( ) throws Exception { } public void testMethodLookup ( ) throws Exception { } public void testField ( ) throws Exception { } public void testPrivateField ( ) throws Exception { } public void testPrivateFieldOfSuperClass ( ) throws Exception { } public void testGetTargetClass ( ) { } public void testGetTargetField ( ) { } public void testGetTargetGetter ( ) { } public void testOnlyPrimitiveGetter ( ) throws Exception { } public void testOnlyStringGetter ( ) throws Exception { } public void testGetTargetSetter ( ) { } public void testOverriddenGetter ( ) throws Exception { } public void testPropertyClassWithSubType ( ) throws Exception { } private static class InnerVectorPOJO extends Vector < Void > { private static final long serialVersionUID = 1L ; public String testValue = "vector" ; } public void testPropertyModel ( ) { } public void testDirectFieldSetWithDifferentTypeThanGetter ( ) { } private static class DirectFieldSetWithDifferentTypeThanGetter { private int value ; public String getValue ( ) { } } public void testConversionExceptionMessageContainsTheObjectPropertyBeingSet ( ) { try { PropertyResolverConverter convertToNull = new PropertyResolverConverter ( null , null ) { private static final long serialVersionUID = 1L ; @ Override <START_BUG> public < T , I > Object convert ( I object , Class < T > clz ) { <END_BUG> return null ; } } ; PropertyResolver . setValue ( "name" , person , "" , convertToNull ) ; fail ( "Should<seq2seq4repair_space>have<seq2seq4repair_space>thrown<seq2seq4repair_space>an<seq2seq4repair_space>ConversionException" ) ; } catch ( ConversionException e ) { assertTrue ( e . getMessage ( ) . toLowerCase ( ) . contains ( "name" ) ) ; } } public void testDateToStringConverting ( ) { } public void testDateToLongConverting ( ) { } }

Fix:
public < T > T convert ( Object object , Class < T > clz ) {