Stack { public boolean isEmpty() { return top == 0; } Stack();  Stack(int initialSize); boolean isEmpty(); void push(Object element); Object pop();  }
@Test public void testIsEmpty() { Stack stack = new Stack(); Assert.assertTrue(stack.isEmpty()); stack.push(1); Assert.assertFalse(stack.isEmpty()); }