Program: 43901
Project: 43901
Buggy source:
/** 
 * Test method for reading a blob object.  {@link eu.venusc.cdmi.BlobOperations#read(java.lang.String,java.lang.String)}.
 */
@Test public void testRead(){
  HttpResponse response=null;
  int responseCode=0;
  try {
    response=cops.create(containerName + "String_Node_Str",parameters);
    responseCode=response.getStatusLine().getStatusCode();
    if (responseCode != 201)     fail("String_Node_Str" + containerName + "String_Node_Str");
    response=bops.create(containerName + "String_Node_Str" + objectName,Utils.getBytesFromFile(tmpFile),parameters);
    responseCode=response.getStatusLine().getStatusCode();
    if (responseCode != 201)     fail("String_Node_Str" + containerName + "String_Node_Str"+ objectName);
    response=bops.read(containerName + "String_Node_Str" + objectName);
    responseCode=response.getStatusLine().getStatusCode();
    String mimeType=(String)Utils.getElement(response,"String_Node_Str");
    if (mimeType != "String_Node_Str") {
      assertEquals("String_Node_Str",new String(Utils.getBytesFromFile(tmpFile)),Utils.getObjectContent(response));
    }
 else {
      assertEquals("String_Node_Str",new String(Utils.getBytesFromFile(tmpFile)),Utils.getObjectContent(response));
    }
  }
 catch (  ClientProtocolException e) {
    System.err.println(e.getMessage());
  }
catch (  IOException e) {
    System.err.println(e.getMessage());
  }
catch (  CDMIOperationException e) {
    System.err.println(e.getMessage());
  }
}

Fixed version (ground truth):
/** 
 * Test method for reading a blob object.  {@link eu.venusc.cdmi.BlobOperations#read(java.lang.String,java.lang.String)}.
 * @throws ParseException 
 * @throws IOException 
 */
@Test public void testRead() throws ParseException, IOException {
  HttpResponse response=null;
  int responseCode=-1;
  try {
    response=cops.create(containerName + "String_Node_Str",parameters);
    responseCode=response.getStatusLine().getStatusCode();
    if (responseCode != 201)     fail("String_Node_Str" + containerName + "String_Node_Str");
    response=bops.create(containerName + "String_Node_Str" + objectName,Utils.getBytesFromFile(tmpFile),parameters);
    responseCode=response.getStatusLine().getStatusCode();
    if (responseCode != 201)     fail("String_Node_Str" + containerName + "String_Node_Str"+ objectName);
    response=bops.read(containerName + "String_Node_Str" + objectName);
    responseCode=response.getStatusLine().getStatusCode();
    String mimeType=(String)Utils.getElement(response,"String_Node_Str");
    response=bops.read(containerName + "String_Node_Str" + objectName);
    responseCode=response.getStatusLine().getStatusCode();
    if (!mimeType.equals("String_Node_Str")) {
      assertEquals("String_Node_Str",new String(Utils.getBytesFromFile(tmpFile)),Utils.getObjectContent(response));
    }
 else {
      assertEquals("String_Node_Str",new String(Utils.getBytesFromFile(tmpFile)),Utils.getTextContent(response));
    }
  }
 catch (  ClientProtocolException e) {
    System.err.println(e.getMessage());
  }
catch (  IOException e) {
    e.printStackTrace();
  }
catch (  CDMIOperationException e) {
    System.err.println(e.getMessage() + "String_Node_Str" + responseCode);
  }
}