198199200201202203204205206207208
h.check(i.getFlushedPosition() == 4); boolean exceptionThrown = false; try { i.flushBefore(3); } catch (IndexOutOfBoundsException e) { exceptionThrown = true; }
209210211212213214215216217218219
h.check(exceptionThrown); exceptionThrown = false; try { i.flushBefore(5); } catch (IndexOutOfBoundsException e) { exceptionThrown = true; }