receiveBufferSizePredictor.previousReceiveBufferSize(960);
log.debug("current buf size: " + receiveBufferSizePredictor.nextReceiveBufferSize());
Assert.assertThat(receiveBufferSizePredictor.nextReceiveBufferSize(), is(1024));
receiveBufferSizePredictor.previousReceiveBufferSize(1025);
receiveBufferSizePredictor.previousReceiveBufferSize(1300);
log.debug("current buf size: " + receiveBufferSizePredictor.nextReceiveBufferSize());
Assert.assertThat(receiveBufferSizePredictor.nextReceiveBufferSize(), greaterThan(1024));
receiveBufferSizePredictor.previousReceiveBufferSize(4000);
log.debug("current buf size: " + receiveBufferSizePredictor.nextReceiveBufferSize());