Program: 32880
Project: 32880
Buggy source:
@Test public void test_execBatchMode() throws ArangoException {
  driver.startBatchMode();
  BaseEntity res=driver.createAqlFunction("String_Node_Str","String_Node_Str");
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  res=driver.createAqlFunction("String_Node_Str","String_Node_Str");
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  res=driver.getAqlFunctions(null);
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    TestComplexEntity01 value=new TestComplexEntity01("String_Node_Str" + i,"String_Node_Str" + i,i);
    res=driver.createDocument("String_Node_Str",value,true,false);
    assertThat(res.getStatusCode(),is(206));
    assertThat(res.getRequestId(),is("String_Node_Str" + (4 + i)));
  }
  List<String> r=driver.getDocuments("String_Node_Str");
  DefaultEntity result=driver.executeBatch();
  DefaultEntity created=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(created.getStatusCode(),is(201));
  AqlFunctionsEntity functions=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(functions.getStatusCode(),is(200));
  assertThat(String.valueOf(functions.getAqlFunctions().keySet().toArray()[0]),is("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    DocumentEntity<TestComplexEntity01> resultComplex=driver.getBatchResponseByRequestId("String_Node_Str" + (4 + i));
    assertThat(resultComplex.getStatusCode(),is(202));
  }
  List<String> documents=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(documents.size(),is(10));
}

Fixed version (ground truth):
@Test public void test_execBatchMode() throws ArangoException {
  try {
    driver.truncateCollection("String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  driver.startBatchMode();
  BaseEntity res=driver.createAqlFunction("String_Node_Str","String_Node_Str");
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  res=driver.createAqlFunction("String_Node_Str","String_Node_Str");
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  res=driver.getAqlFunctions(null);
  assertThat(res.getStatusCode(),is(206));
  assertThat(res.getRequestId(),is("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    TestComplexEntity01 value=new TestComplexEntity01("String_Node_Str" + i,"String_Node_Str" + i,i);
    res=driver.createDocument(colName,value,true,false);
    assertThat(res.getStatusCode(),is(206));
    assertThat(res.getRequestId(),is("String_Node_Str" + (4 + i)));
  }
  List<String> r=driver.getDocuments(colName);
  DefaultEntity result=driver.executeBatch();
  DefaultEntity created=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(created.getStatusCode(),is(201));
  AqlFunctionsEntity functions=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(functions.getStatusCode(),is(200));
  assertThat(String.valueOf(functions.getAqlFunctions().keySet().toArray()[0]),is("String_Node_Str"));
  for (int i=0; i < 10; i++) {
    DocumentEntity<TestComplexEntity01> resultComplex=driver.getBatchResponseByRequestId("String_Node_Str" + (4 + i));
    assertThat(resultComplex.getStatusCode(),is(202));
  }
  List<String> documents=driver.getBatchResponseByRequestId("String_Node_Str");
  assertThat(documents.size(),is(10));
  try {
    driver.truncateCollection("String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}