Buggy code:
public class JMeterTest extends JMeterTestCase { private static Logger log = LoggingManager . getLoggerForClass ( ) ; private static Map guiTitles ; private static Map guiTags ; private static Map funcTitles ; public JMeterTest ( String name ) { } private TestElement testItem ; public JMeterTest ( String testName , TestElement te ) { } private Serializable serObj ; public JMeterTest ( String testName , Serializable ser ) { } private JMeterGUIComponent guiItem ; public JMeterTest ( String testName , JMeterGUIComponent gc ) { } private Function funcItem ; private static boolean classPathShown = false ; public JMeterTest ( String testName , Function fi ) { } public static Test suite ( ) throws Exception { } public void createTitleSet ( ) throws Exception { } public void createTagSet ( ) throws Exception { } public void createFunctionSet ( ) throws Exception { } private int scanprintMap ( Map m , String t ) { } public void checkGuiSet ( ) throws Exception { } public void checkFunctionSet ( ) throws Exception { } private static Test suiteGUIComponents ( ) throws Exception { } private static Test suiteFunctions ( ) throws Exception { } private static Test suiteBeanComponents ( ) throws Exception { } public void runGUITitle ( ) throws Exception { } public void runFunction ( ) throws Exception { } public void runFunction2 ( ) throws Exception { } public void GUIComponents1 ( ) throws Exception { } public void GUIComponents2 ( ) throws Exception { String name = guiItem . getClass ( ) . getName ( ) ; TestElement el = guiItem . createTestElement ( ) ; assertNotNull ( ( name + ".createTestElement<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>non-null<seq2seq4repair_space>" ) , el ) ; assertEquals ( ( "GUI-CLASS:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , name , el . getPropertyAsString ( GUI_CLASS ) ) ; assertEquals ( ( "NAME:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , guiItem . getName ( ) , el . getPropertyAsString ( NAME ) ) ; assertEquals ( ( "TEST-CLASS:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , el . getClass ( ) . getName ( ) , el . getPropertyAsString ( TEST_CLASS ) ) ; TestElement el2 = guiItem . createTestElement ( ) ; el . setProperty ( NAME , "hey,<seq2seq4repair_space>new<seq2seq4repair_space>name!:" ) ; el . setProperty ( "NOT" , "Shouldn't<seq2seq4repair_space>be<seq2seq4repair_space>here" ) ; if ( ! ( ( guiItem ) instanceof UnsharedComponent ) ) { assertEquals ( ( "SHARED:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , "" , el2 . getPropertyAsString ( "NOT" ) ) ; } JMeterTest . log . debug ( ( "Saving<seq2seq4repair_space>element:<seq2seq4repair_space>" + ( el . getClass ( ) ) ) ) ; StringWriter writer = new StringWriter ( ) ; SaveService . saveElement ( el , writer ) ; el = ( ( TestElement ) ( SaveService . loadElement ( new StringReader ( writer . toString ( ) ) ) ) ) ; <START_BUG> JMeterTest . log . debug ( "Successfully<seq2seq4repair_space>saved" ) ; <END_BUG> guiItem . configure ( el ) ; assertEquals ( ( "CONFIGURE-TEST:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , el . getPropertyAsString ( NAME ) , guiItem . getName ( ) ) ; guiItem . modifyTestElement ( el2 ) ; assertEquals ( ( "Modify<seq2seq4repair_space>Test:<seq2seq4repair_space>Failed<seq2seq4repair_space>on<seq2seq4repair_space>" + name ) , "hey,<seq2seq4repair_space>new<seq2seq4repair_space>name!:" , el2 . getPropertyAsString ( NAME ) ) ; } private static Test suiteSerializableElements ( ) throws Exception { } public void runSerialTest ( ) throws Exception { } private static Test suiteTestElements ( ) throws Exception { } public void runTestElement ( ) throws Exception { } private static Collection getObjects ( Class extendsClass ) throws Exception { } private static void cloneTesting ( TestElement item , TestElement clonedItem ) { } private static void checkElementCloning ( TestElement item ) { } }

Fix:
assertNotNull ( ( "Load<seq2seq4repair_space>element<seq2seq4repair_space>failed<seq2seq4repair_space>on:<seq2seq4repair_space>" + name ) , el ) ;