assertEquals("i have not brought anything yet it should be all needed items",
"#one, #two, and #three", getReply(npc));
StackableItem item = new StackableItem("one", "", "", null);
item.setQuantity(10);
item.setID(new ID(2, "testzone"));
player.getSlot("bag").add(item);
en.step(player, "yes");
assertEquals("item brought", quest.askForItemsAfterPlayerSaidHeHasItems(), getReply(npc));
en.step(player, "one");
assertEquals("item brought", quest.respondToItemBrought(), getReply(npc));
en.step(player, "one");
assertEquals("item brought", quest.respondToOfferOfNotMissingItem(), getReply(npc));
npc.remove("text");
assertEquals(ConversationStates.QUESTION_1, en.getCurrentState());
en.step(player, quest.getTriggerPhraseToEnumerateMissingItems().get(0));
final List<String> missing = new LinkedList<String>(quest.getNeededItems());
missing.remove("one");
assertEquals("two and three are missing", "#two and #three", getReply(npc));
en.step(player, "two");
assertEquals("item brought", quest.respondToOfferOfNotExistingItem("two"), getReply(npc));
item = new StackableItem("two", "", "", null);
item.setQuantity(10);
item.setID(new ID(2, "testzone"));
player.getSlot("bag").add(item);
item = new StackableItem("three", "", "", null);
item.setQuantity(10);
item.setID(new ID(2, "testzone"));
player.getSlot("bag").add(item);
en.step(player, "three");
assertEquals("item brought", quest.respondToItemBrought(), getReply(npc));
en.step(player, "two");
assertEquals("last item brought", quest.respondToLastItemBrought(), getReply(npc));