@Test
public void testSize() throws Exception {

    assertEquals(stack.size(), 0);
    stack.push("a");
    assertEquals(stack.size(), 1);
    stack.push("b");
    assertEquals(stack.size(), 2);
    stack.pop();
    assertEquals(stack.size(), 1);
    stack.pop();
    assertEquals(stack.size(), 0);
}