Program: 182556
Project: 182556
Buggy source:
@MediumTest public void testInsertHelper() throws Exception {
  Cursor cur;
  ContentValues cv;
  long row;
  mDatabase.execSQL("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  DatabaseUtils.InsertHelper ih=new DatabaseUtils.InsertHelper(mDatabase,"String_Node_Str");
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertNull(cur.getString(3));
  Assert.assertEquals(1234,cur.getLong(4));
  Assert.assertNull(cur.getString(5));
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertNull(cur.getString(3));
  Assert.assertEquals(1234,cur.getLong(4));
  Assert.assertNull(cur.getString(5));
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  Assert.assertEquals(-1,row);
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str",2345);
  cv.put("String_Node_Str",3456);
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertEquals(2345,cur.getLong(3));
  Assert.assertEquals(3456,cur.getLong(4));
  Assert.assertEquals("String_Node_Str",cur.getString(5));
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str",6789);
  row=ih.insert(cv);
  Assert.assertEquals(-1,row);
  row=ih.replace(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertEquals(6789,cur.getLong(3));
  ih.close();
}

Fixed version (ground truth):
@MediumTest public void testInsertHelper() throws Exception {
  Cursor cur;
  ContentValues cv;
  long row;
  mDatabase.execSQL("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str");
  DatabaseUtils.InsertHelper ih=new DatabaseUtils.InsertHelper(mDatabase,"String_Node_Str");
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertNull(cur.getString(3));
  Assert.assertEquals(1234,cur.getLong(4));
  Assert.assertNull(cur.getString(5));
  cur.close();
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertNull(cur.getString(3));
  Assert.assertEquals(1234,cur.getLong(4));
  Assert.assertNull(cur.getString(5));
  cur.close();
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  Assert.assertEquals(-1,row);
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str",2345);
  cv.put("String_Node_Str",3456);
  cv.put("String_Node_Str","String_Node_Str");
  row=ih.insert(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertEquals(2345,cur.getLong(3));
  Assert.assertEquals(3456,cur.getLong(4));
  Assert.assertEquals("String_Node_Str",cur.getString(5));
  cur.close();
  cv=new ContentValues();
  cv.put("String_Node_Str","String_Node_Str");
  cv.put("String_Node_Str",6789);
  row=ih.insert(cv);
  Assert.assertEquals(-1,row);
  row=ih.replace(cv);
  cur=mDatabase.rawQuery("String_Node_Str" + row,null);
  Assert.assertTrue(cur.moveToFirst());
  Assert.assertEquals("String_Node_Str",cur.getString(1));
  Assert.assertEquals("String_Node_Str",cur.getString(2));
  Assert.assertEquals(6789,cur.getLong(3));
  cur.close();
  ih.close();
}