@Test
public void testAddItem() {
String text = getItemText();
data.addItem(text);
Item item = new Item(null, 0, text, Priority.MEDIUM, Status.NEW, NOW,
NOW);
verifyAddItemInvocations(item);
assertEquals(1, data.getDocument().getItems().size());
TestUtils.assertItemEquals(item, data.getDocument().getItems().get(0));
assertEquals(1, data.getNextId());