@Test public void testMin() { Stack<Integer> s1 = new Stack<>(); s1.push(4); s1.push(2); s1.push(7); s1.push(12); assertEquals(2, (int) s1.min()); }