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());
Assert.assertThat(receiveBufferSizePredictor.nextReceiveBufferSize(), greaterThan(2000));
receiveBufferSizePredictor.previousReceiveBufferSize(500);
Assert.assertThat(receiveBufferSizePredictor.nextReceiveBufferSize(), greaterThan(2000));