Buggy code:
public boolean getSendFileAsPostBody ( ) { } public boolean getSendParameterValuesAsPostBody ( ) { } public boolean getUseMultipartForPost ( ) { } public void setProtocol ( String value ) { } public String getProtocol ( ) { } public void setPath ( String path ) { } public void setPath ( String path , String contentEncoding ) { } public String getPath ( ) { } public void setFollowRedirects ( boolean value ) { } public boolean getFollowRedirects ( ) { } public void setAutoRedirects ( boolean value ) { } public boolean getAutoRedirects ( ) { } public void setMethod ( String value ) { } public String getMethod ( ) { } public void setContentEncoding ( String value ) { } public String getContentEncoding ( ) { } public void setUseKeepAlive ( boolean value ) { } public boolean getUseKeepAlive ( ) { } public void setDoMultipartPost ( boolean value ) { } public boolean getDoMultipartPost ( ) { } public void setMonitor ( String value ) { } public void setMonitor ( boolean truth ) { } public String getMonitor ( ) { } public boolean isMonitor ( ) { } public void setImplementation ( String value ) { } public String getImplementation ( ) { } public void addEncodedArgument ( String name , String value ) { } public void addEncodedArgument ( String name , String value , String metaData , String contentEncoding ) { } public void addEncodedArgument ( String name , String value , String metaData ) { } public void addNonEncodedArgument ( String name , String value , String metadata ) { } public void addArgument ( String name , String value ) { } public void addArgument ( String name , String value , String metadata ) { } public void addTestElement ( TestElement el ) { } public void setPort ( int value ) { } public static int getDefaultPort ( String protocol , int port ) { } public boolean isProtocolDefaultPort ( ) { } public int getPort ( ) { } public void setDomain ( String value ) { } public String getDomain ( ) { } public void setArguments ( Arguments value ) { } public Arguments getArguments ( ) { } public void setAuthManager ( AuthManager value ) { } public AuthManager getAuthManager ( ) { } public void setHeaderManager ( HeaderManager value ) { } public HeaderManager getHeaderManager ( ) { } public void setCookieManager ( CookieManager value ) { } public CookieManager getCookieManager ( ) { } public void setMimetype ( String value ) { } public String getMimetype ( ) { } public boolean isImageParser ( ) { } public void setImageParser ( boolean parseImages ) { } public String getEmbeddedUrlRE ( ) { } public void setEmbeddedUrlRE ( String regex ) { } protected HTTPSampleResult errorResult ( Throwable e , HTTPSampleResult res ) { } public java . net . URL getUrl ( ) throws MalformedURLException { } public String getQueryString ( ) { } public String getQueryString ( String contentEncoding ) { } public void parseArguments ( String queryString , String contentEncoding ) { } public void parseArguments ( String queryString ) { } public String toString ( ) { } public SampleResult sample ( Entry e ) { } public SampleResult sample ( ) { } private HTTPSampleResult fileSample ( URI uri ) throws IOException { String urlStr = uri . toString ( ) ; HTTPSampleResult res = new HTTPSampleResult ( ) ; res . setMonitor ( isMonitor ( ) ) ; res . setHTTPMethod ( HTTPSamplerBase . GET ) ; res . setURL ( new java . net . URL ( urlStr ) ) ; res . setSampleLabel ( urlStr ) ; FileReader reader = null ; res . sampleStart ( ) ; try { byte [ ] responseData ; StringBuffer ctb = new StringBuffer ( "text//html" ) ; reader = new FileReader ( getPath ( ) ) ; String contentEncoding = getContentEncoding ( ) ; if ( ( contentEncoding . length ( ) ) == 0 ) { responseData = IOUtils . toByteArray ( reader ) ; } else { ctb . append ( ";<seq2seq4repair_space>charset=" ) ; ctb . append ( contentEncoding ) ; responseData = IOUtils . toByteArray ( reader , contentEncoding ) ; } res . sampleEnd ( ) ; res . setResponseData ( responseData ) ; res . setResponseCodeOK ( ) ; <START_BUG> res . setResponseMessage ( "" ) ; <END_BUG> res . setSuccessful ( true ) ; String ct = ctb . toString ( ) ; res . setContentType ( ct ) ; res . setEncodingAndType ( ct ) ; } finally { IOUtils . closeQuietly ( reader ) ; } return res ; } protected abstract HTTPSampleResult sample ( java . net . URL u , String method , boolean areFollowingRedirect , int depth ) { } protected HTTPSampleResult downloadPageResources ( HTTPSampleResult res , HTTPSampleResult container , int frameDepth ) { } private String getParserClass ( HTTPSampleResult res ) { } protected String encodeSpaces ( String path ) { } public void testEnded ( ) { } public void testEnded ( String host ) { } public void testIterationStart ( LoopIterationEvent event ) { } public void testStarted ( ) { } public void testStarted ( String host ) { } public Object clone ( ) { } protected HTTPSampleResult followRedirects ( HTTPSampleResult res , int frameDepth ) { } protected HTTPSampleResult resultProcessing ( boolean areFollowingRedirect , int frameDepth , HTTPSampleResult res ) { } protected boolean isSuccessCode ( int code ) { } protected static String encodeBackSlashes ( String value ) { } protected boolean hasUploadableFiles ( ) { } public static String [ ] getValidMethodsAsArray ( ) { } public static boolean isSecure ( String protocol ) { } public static boolean isSecure ( java . net . URL url ) { } public void threadStarted ( ) { } public void threadFinished ( ) { } }

Fix:
res . setResponseMessageOK ( ) ;