Program: 32888
Project: 32888
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(200));
  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 + 1));
    assertThat(resultComplex.getStatusCode(),is(202));
  }
}

Fixed version (ground truth):
@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(200));
  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));
}