@Override
    public E set(int index, E element) {
        return underlying.set(index, element);
    }
@Test
    public void testSet() {
        BoundedList<Integer> list = BoundedList.newArrayBacked(3);
        list.add(1);
        list.add(200);
        list.add(3);
        assertEquals(Arrays.asList(1, 200, 3), list);
        list.set(0, 100);
        list.set(1, 200);
        list.set(2, 300);
        assertEquals(Arrays.asList(100, 200, 300), list);
    }