    @Test
    public void testForwards() throws Exception {


        final CircularBuffer buffer = new CircularBuffer(10);
        assertEquals(1, buffer.forwards(0));
        assertEquals(5, buffer.forwards(4));
        assertEquals(0, buffer.forwards(9));

    }