### Question:
Stack implements Iterable<E> { public boolean isEmpty() { return (list.size() == 0); } Stack();  Stack(int initialCapacity);  Stack(Stack<E> stack); boolean isEmpty(); E peek(); E pop(); E push(E item); int search(E o); int size(); E get(int depth); void add(E item); void clear(); @Override Iterator<E> iterator(); Stream<E> stream(); @Override int hashCode(); @SuppressWarnings("rawtypes") @Override boolean equals(Object obj); @Override String toString();  }### Answer:
@Test public void testEmpty() { assertEquals(true, stack1.isEmpty()); assertEquals(false, stack2.isEmpty()); assertEquals(false, stack3.isEmpty()); }