Buggy code:
public String getUserDN ( ) { } public void SetUserDN ( String newUserDN ) { } public String getUserPw ( ) { } public void setUserPw ( String newUserPw ) { } public String getSuserDN ( ) { } public void SetSuserDN ( String newUserDN ) { } public String getSuserPw ( ) { } public void setSuserPw ( String newUserPw ) { } public void setServername ( String servername ) { } public void setPort ( String port ) { } public String getServername ( ) { } public String getPort ( ) { } public void setRootdn ( String newRootdn ) { } public String getRootdn ( ) { } public String getScope ( ) { } public void setScope ( String newScope ) { } public String getCountlim ( ) { } public void setCountlim ( String newClim ) { } public String getTimelim ( ) { } public void setTimelim ( String newTlim ) { } public boolean getRetobj ( ) { } public void setRetobj ( String newRobj ) { } public boolean getDeref ( ) { } public void setDeref ( String newDref ) { } public void setTest ( String newTest ) { } public String getTest ( ) { } public void setAttrs ( String newAttrs ) { } public String getAttrs ( ) { } public void setBaseEntryDN ( String newbaseentry ) { } public String getBaseEntryDN ( ) { } public void setArguments ( Arguments value ) { } public Arguments getArguments ( ) { } public void setLDAPArguments ( LDAPArguments value ) { } public LDAPArguments getLDAPArguments ( ) { } public BasicAttributes getUserAttributes ( ) { } public ModificationItem [ ] getUserModAttributes ( ) { } public String [ ] getRequestAttributes ( String reqAttr ) { } public BasicAttribute getBasicAttribute ( String name , String value ) { } public String getLabel ( ) { } public void addTest ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void deleteTest ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void searchTest ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void modifyTest ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void bindOp ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void singleBindOp ( SampleResult res ) throws Exception { } public void compareOp ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void renameTest ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public void unbindOp ( LdapExtClient ldap , DirContext dirContext , SampleResult res ) throws Exception { } public SampleResult sample ( Entry e ) { String responseData = "<ldapanswer>" ; SampleResult res = new SampleResult ( ) ; res . setResponseData ( "successfull" . getBytes ( ) ) ; res . setResponseMessage ( "Success" ) ; res . setResponseCode ( "0" ) ; boolean isSuccessful = true ; SearchResult sr ; String iets ; NamingEnumeration attrlist ; <START_BUG> res . setSampleLabel ( ( ( ( ( ( ( ( getLabel ( ) ) + ":" ) + ( getPropertyAsString ( LDAPExtSampler . TEST ) ) ) + ":" ) + ( Thread . currentThread ( ) . getName ( ) ) ) + ";" ) + ( System . currentTimeMillis ( ) ) ) ) ; <END_BUG> LdapExtClient temp_client = ( ( LdapExtClient ) ( LDAPExtSampler . ldapConnections . get ( Thread . currentThread ( ) . getName ( ) ) ) ) ; DirContext dirContext = ( ( DirContext ) ( LDAPExtSampler . ldapContexts . get ( Thread . currentThread ( ) . getName ( ) ) ) ) ; if ( temp_client == null ) { temp_client = new LdapExtClient ( ) ; try { dirContext = new InitialDirContext ( ) ; } catch ( Exception err ) { LDAPExtSampler . log . error ( "Ldap<seq2seq4repair_space>client<seq2seq4repair_space>context<seq2seq4repair_space>creation<seq2seq4repair_space>-<seq2seq4repair_space>" , err ) ; } LDAPExtSampler . ldapConnections . put ( Thread . currentThread ( ) . getName ( ) , temp_client ) ; } try { if ( getPropertyAsString ( LDAPExtSampler . TEST ) . equals ( "unbind" ) ) { res . setSamplerData ( "Unbind" ) ; responseData = responseData + "<operation><opertype>unbind<//opertype>" ; responseData = ( ( responseData + "<baseobj>" ) + ( getRootdn ( ) ) ) + "<//baseobj>" ; responseData = ( ( responseData + "<binddn>" ) + ( getUserDN ( ) ) ) + "<//binddn><//operation>" ; unbindOp ( temp_client , dirContext , res ) ; } else if ( getPropertyAsString ( LDAPExtSampler . TEST ) . equals ( "bind" ) ) { res . setSamplerData ( ( "Bind<seq2seq4repair_space>as<seq2seq4repair_space>" + ( getUserDN ( ) ) ) ) ; responseData = responseData + "<operation><opertype>bind<//opertype>" ; responseData = ( ( responseData + "<baseobj>" ) + ( getRootdn ( ) ) ) + "<//baseobj>" ; responseData = ( ( responseData + "<binddn>" ) + ( getUserDN ( ) ) ) + "<//binddn><//operation>" ; bindOp ( temp_client , dirContext , res ) ; } else if ( getPropertyAsString ( LDAPExtSampler . TEST ) . equals ( "sbind" ) ) { res . setSamplerData ( ( "SingleBind<seq2seq4repair_space>as<seq2seq4repair_space>" + ( getSuserDN ( ) ) ) ) ; responseData = responseData + "<operation><opertype>bind<//opertype>" ; responseData = ( ( responseData + "<binddn>" ) + ( getSuserDN ( ) ) ) + "<//binddn><//operation>" ; singleBindOp ( res ) ; } else if ( getPropertyAsString ( LDAPExtSampler . TEST ) . equals ( "compare" ) ) { res . setSamplerData ( ( ( ( "Compare<seq2seq4repair_space>" + ( getPropertyAsString ( LDAPExtSampler . COMPAREFILT ) ) ) + "<seq2seq4repair_space>" ) + ( getPropertyAsString ( LDAPExtSampler . COMPAREDN ) ) ) ) ; responseData = responseData + "<operation><opertype>compare<//opertype>" ; responseData = ( ( responseData + "<comparedn>" ) + ( getPropertyAsString ( LDAPExtSampler . COMPAREDN ) ) ) + "<//comparedn>" ;

Fix:
res . setSampleLabel ( getName ( ) ) ;