@Test(expected = UnsupportedOperationException.class) public void testAdd_WithIndex() { int i = randomInt(); list.add(i, i + 1); }
@Test(expected = UnsupportedOperationException.class) public void testAdd() { list.add(randomInt()); }