@Test
public void testIllegalGet() throws Exception {

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