Program: 176669
Project: 176669
Buggy source:
/** 
 * Test method for  {@link com.impetus.client.mongodb.schemamanager.MongoDBSchemaManager#create(java.util.List)}.
 */
@Test public void testCreate(){
  DBCollection collection=db.getCollection("String_Node_Str");
  Assert.assertTrue(collection.isCapped());
  Assert.assertEquals(ReadPreference.PRIMARY,collection.getReadPreference());
  Assert.assertNotNull(collection.getIndexInfo());
  Assert.assertEquals(3,collection.getIndexInfo().size());
  int count=0;
  for (  DBObject dbObject : collection.getIndexInfo()) {
    if (dbObject.get("String_Node_Str").equals("String_Node_Str")) {
      Assert.assertEquals(new Integer(Integer.MIN_VALUE),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(Integer.MAX_VALUE),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str",1)));
      count++;
    }
 else     if (dbObject.get("String_Node_Str").equals("String_Node_Str")) {
      Assert.assertEquals(new Integer(100),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(500),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str",-1)));
      count++;
    }
 else {
      Assert.assertEquals(new Integer(-100),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(500),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str","String_Node_Str")));
      count++;
    }
  }
  Assert.assertEquals(3,count);
}

Fixed version (ground truth):
/** 
 * Test method for  {@link com.impetus.client.mongodb.schemamanager.MongoDBSchemaManager#create(java.util.List)}.
 */
@Test public void testCreate(){
  DBCollection collection=db.getCollection("String_Node_Str");
  Assert.assertEquals(ReadPreference.PRIMARY,collection.getReadPreference());
  Assert.assertNotNull(collection.getIndexInfo());
  Assert.assertEquals(4,collection.getIndexInfo().size());
  int count=0;
  for (  DBObject dbObject : collection.getIndexInfo()) {
    if (dbObject.get("String_Node_Str").equals("String_Node_Str")) {
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str",1)));
      count++;
    }
 else     if (dbObject.get("String_Node_Str").equals("String_Node_Str")) {
      Assert.assertEquals(new Integer(Integer.MIN_VALUE),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(Integer.MAX_VALUE),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str",1)));
      count++;
    }
 else     if (dbObject.get("String_Node_Str").equals("String_Node_Str")) {
      Assert.assertEquals(new Integer(100),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(500),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str",-1)));
      count++;
    }
 else {
      Assert.assertEquals(new Integer(-100),dbObject.get("String_Node_Str"));
      Assert.assertEquals(new Integer(500),dbObject.get("String_Node_Str"));
      Assert.assertTrue(dbObject.get("String_Node_Str").equals(new BasicDBObject("String_Node_Str","String_Node_Str")));
      count++;
    }
  }
  Assert.assertEquals(4,count);
}