ISession session = new StandardSession(VERSION, bufferPool, scheduler, controller, endPoint, null, 1, null, generator, null);
IStream stream = new StandardStream(1, (byte)0, session, null, scheduler, null);
stream.updateWindowSize(8192);
// Send a reply to comply with the API usage
stream.reply(new ReplyInfo(false), new Callback.Adapter());
// Make the controller fail
fail.set(true);
final CountDownLatch failedCalledLatch = new CountDownLatch(1);
Callback.Adapter callback = new Callback.Adapter()