Program: 21519
Project: 21519
Buggy source:
@Test(timeout=5000) public void retryRecoverableErrors() throws Exception {
  logTestStart();
  String testURI="String_Node_Str";
  BodyQName ref=BodyQName.createWithPrefix(testURI,"String_Node_Str","String_Node_Str");
  session.send(ComposableBody.builder().build());
  StubConnection conn=cm.awaitConnection();
  AbstractBody scr=ComposableBody.builder().setAttribute(Attributes.SID,"String_Node_Str").setAttribute(Attributes.WAIT,"String_Node_Str").setAttribute(Attributes.REQUESTS,"String_Node_Str").build();
  conn.sendResponse(scr);
  session.drain();
  session.addBOSHClientRequestListener(new BOSHClientRequestListener(){
    public void requestSent(    BOSHMessageEvent event){
      try {
        Thread.sleep(10);
      }
 catch (      InterruptedException intx) {
      }
    }
  }
);
  session.send(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  StubConnection conn1=cm.awaitConnection();
  session.send(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  StubConnection conn2=cm.awaitConnection();
  String expected2=conn2.getRequest().getBody().toXML();
  conn2.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  String expected1=conn1.getRequest().getBody().toXML();
  conn1.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(Attributes.TYPE,"String_Node_Str").setAttribute(ref,"String_Node_Str").build());
  conn=cm.awaitConnection();
  String actual1=conn.getRequest().getBody().toXML();
  conn.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  assertEquals(expected1,actual1);
  conn=cm.awaitConnection();
  String actual2=conn.getRequest().getBody().toXML();
  conn.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  assertEquals(expected2,actual2);
  session.drain();
}

Fixed version (ground truth):
@Test(timeout=5000) public void retryRecoverableErrors() throws Exception {
  logTestStart();
  String testURI="String_Node_Str";
  BodyQName ref=BodyQName.createWithPrefix(testURI,"String_Node_Str","String_Node_Str");
  session.send(ComposableBody.builder().build());
  StubConnection conn=cm.awaitConnection();
  AbstractBody scr=this.getSessionCreationResponse(conn.getRequest().getBody()).setAttribute(Attributes.REQUESTS,"String_Node_Str").build();
  conn.sendResponse(scr);
  session.drain();
  session.addBOSHClientRequestListener(new BOSHClientRequestListener(){
    public void requestSent(    BOSHMessageEvent event){
      try {
        Thread.sleep(10);
      }
 catch (      InterruptedException intx) {
      }
    }
  }
);
  session.send(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  StubConnection conn1=cm.awaitConnection();
  session.send(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  StubConnection conn2=cm.awaitConnection();
  String expected2=conn2.getRequest().getBody().toXML();
  conn2.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  String expected1=conn1.getRequest().getBody().toXML();
  conn1.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(Attributes.TYPE,"String_Node_Str").setAttribute(ref,"String_Node_Str").build());
  conn=cm.awaitConnection();
  String actual1=conn.getRequest().getBody().toXML();
  conn.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  assertEquals(expected1,actual1);
  conn=cm.awaitConnection();
  String actual2=conn.getRequest().getBody().toXML();
  conn.sendResponse(ComposableBody.builder().setNamespaceDefinition("String_Node_Str",testURI).setAttribute(ref,"String_Node_Str").build());
  assertEquals(expected2,actual2);
  session.drain();
}