public void shouldReturnSessionIfRequestIsAccepted() throws Exception {
InBandBytestreamRequest ibbRequest = new InBandBytestreamRequest(
byteStreamManager, initBytestream);
// accept request
InBandBytestreamSession session = ibbRequest.accept();
// capture reply to the In-Band Bytestream open request
ArgumentCaptor<IQ> argument = ArgumentCaptor.forClass(IQ.class);
verify(connection).sendPacket(argument.capture());