@Test
public void testIllegalRemove() throws Exception {

    Assertions.assertThrows(IndexOutOfBoundsException.class, () -> {
        Stack<String> stack = new Stack<String>();
        stack.remove(1);
    });
}