@Test
public void testIllegalPeek() throws Exception {

    Assertions.assertThrows(EmptyStackException.class, () -> {
        Stack<String> stack = new Stack<String>();
        stack.peek();
    });
}