} else {
result.setBytes(buffer.toString().getBytes().length);
}
result.setResponseHeaders(propBuffer.toString());
result.setDataType(SampleResult.TEXT);
<BUG>result.setSuccessful(true);
result.setResponseCodeOK();
result.setResponseMessage(read + " messages received");</BUG>
result.setSamplerData(loop + " messages expected");
result.setSampleCount(read);

} else {
result.setBytes(buffer.toString().getBytes().length);
}
result.setResponseHeaders(propBuffer.toString());
result.setDataType(SampleResult.TEXT);
result.setSuccessful(true);
if (read == 0) {
result.setResponseCode("404"); // Not found
} else {
result.setResponseCodeOK();
}
result.setResponseMessage(read + " messages received");
result.setSamplerData(loop + " messages expected");
result.setSampleCount(read);
