assertFalse("attributes initially empty", mail.getAttributeNames().hasNext());
assertNull("not found on emtpy list", mail.getAttribute("test"));
assertNull("no previous item with key", mail.setAttribute("testKey", "testValue"));
assertEquals("item found", "testValue", mail.getAttribute("testKey"));
assertTrue("has attribute", mail.hasAttributes());
assertEquals("item removed", "testValue", mail.removeAttribute("testKey"));
assertNull("item no longer found", mail.getAttribute("testKey"));
}
}