Buggy code:
public class AlignTest extends TestCase { public AlignTest ( String testName ) { } public static Test suite ( ) { } public void testLoad ( ) { } public void testLoadDuplicate ( ) { } public void testUpdate ( ) { } public void testAlignVertPropsMergeMethods ( ) { Align a = new Align ( ) ; a . removeAllVertices ( ) ; String testVertex = "g.commit();<seq2seq4repair_space>v<seq2seq4repair_space>=<seq2seq4repair_space>g.addVertex();" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "v.setProperty(\"name\",\"CVE-1999-0006\");" + "v.setProperty(\"cvssDate\",<seq2seq4repair_space>\"2004-01-01T00:00:00.000-05:00\");" ) + "v.setProperty(\"references\",<seq2seq4repair_space>\"http:////www.securityfocus.com//bid//133\");" ) + "v.setProperty(\"_type\",<seq2seq4repair_space>\"vertex\");" ) + "v.setProperty(\"availabilityImpact\",<seq2seq4repair_space>\"COMPLETE\");" ) + "v.setProperty(\"description\",<seq2seq4repair_space>\"Buffer<seq2seq4repair_space>overflow<seq2seq4repair_space>in<seq2seq4repair_space>POP<seq2seq4repair_space>servers<seq2seq4repair_space>based<seq2seq4repair_space>on<seq2seq4repair_space>BSD//Qualcomm\'s<seq2seq4repair_space>qpopper<seq2seq4repair_space>allows<seq2seq4repair_space>remote<seq2seq4repair_space>attackers<seq2seq4repair_space>to<seq2seq4repair_space>gain<seq2seq4repair_space>root<seq2seq4repair_space>access<seq2seq4repair_space>using<seq2seq4repair_space>a<seq2seq4repair_space>long<seq2seq4repair_space>PASS<seq2seq4repair_space>command.\");" ) + "v.setProperty(\"source\",<seq2seq4repair_space>\"NVD\");" ) + "v.setProperty(\"vulnerableSoftware\",<seq2seq4repair_space>\"cpe://a:qualcomm:qpopper:2.4\");" ) + "v.setProperty(\"vertexType\",<seq2seq4repair_space>\"vulnerability\");" ) + "v.setProperty(\"accessComplexity\",<seq2seq4repair_space>\"LOW\");" ) + "v.setProperty(\"confidentialityImpact\",<seq2seq4repair_space>\"COMPLETE\");" ) + "v.setProperty(\"cvssScore\",<seq2seq4repair_space>10);" ) + "v.setProperty(\"accessAuthentication\",<seq2seq4repair_space>\"NONE\");" ) + "v.setProperty(\"modifiedDate\",<seq2seq4repair_space>\"2008-09-09T08:33:31.180-04:00\");" ) + "v.setProperty(\"integrityImpact\",<seq2seq4repair_space>\"COMPLETE\");" ) + "v.setProperty(\"_id\",<seq2seq4repair_space>\"CVE-1999-0006\");" ) + "v.setProperty(\"publishedDate\",<seq2seq4repair_space>\"1998-07-14T00:00:00.000-04:00\");" ) + "v.setProperty(\"accessVector\",<seq2seq4repair_space>\"NETWORK\");" ) + "g.commit()" ) ; a . execute ( testVertex ) ; String id = a . findVertId ( "CVE-1999-0006" ) ; Map < String , String > mergeMethods = new HashMap < String , String > ( ) ; Map < String , Object > newProps = new HashMap < String , Object > ( ) ; String testVal ; String testProp ; testVal = "aaaa" ; newProps . put ( "testprop" , testVal ) ; a . alignVertProps ( id , newProps , mergeMethods ) ; testProp = ( ( String ) ( a . getVertByID ( id ) . get ( "testprop" ) ) ) ; assertEquals ( testVal , testProp ) ; <START_BUG> mergeMethods . put ( "testprop" , "SmithWaterman" ) ; <END_BUG> testVal = "bbbb" ; newProps . put ( "testprop" , testVal ) ; a . alignVertProps ( id , newProps , mergeMethods ) ; testProp = ( ( String ) ( a . getVertByID ( id ) . get ( "testprop" ) ) ) ; assertEquals ( testVal , testProp ) ; a . removeAllVertices ( ) ; } public void testAlignVertPropsKeepNew ( ) { } public void testAlignVertPropsAppendList ( ) { } public void testAlignVertPropsKeepUpdates ( ) { } public void testAlignVertPropsKeepConfidence ( ) { } public void testMergeMethodsFromSchema ( ) { } public void testGraphsonFile ( ) throws IOException { } }

Fix:
mergeMethods . put ( "testprop" , "keepNew" ) ;