expected:<737> but was:<736>
java.lang.AssertionError: expected:<737> but was:<736>
There is while cycle which check whether producer is blocked and thus temporary queue is full. Sometimes it can happen that producer spend all his credits too fast and he is blocked because he waits to receive credits from server, but the queue is not full. We have to ensure that the producer is blocked due to full queue and it is not just temporary state.