/**
* Tests for pluralAndPrefix.
*/
@Test
public final void testPluralAndPrefix() {
Sentence sentence = ConversationParser.parse("buy seven bananas");
assertFalse(sentence.hasError());
assertEquals("buy", sentence.getVerbString());
assertEquals(7, sentence.getObject(0).getAmount());
assertEquals("banana", sentence.getObject(0).getNormalized());
sentence = ConversationParser.parse("buy a bottle of wine");
assertFalse(sentence.hasError());
assertEquals("buy", sentence.getVerbString());
assertEquals(1, sentence.getObject(0).getAmount());
assertEquals("wine", sentence.getObject(0).getNormalized());
sentence = ConversationParser.parse("buy two pairs of trousers");
assertFalse(sentence.hasError());
assertEquals("buy", sentence.getVerbString());
assertEquals(2, sentence.getObject(0).getAmount());
assertEquals("trouser", sentence.getObject(0).getNormalized());
sentence = ConversationParser.parse("sell 4 chaos boots");
assertFalse(sentence.hasError());
assertEquals("sell", sentence.getVerbString());
assertEquals(4, sentence.getObject(0).getAmount());
assertEquals("chaos boot", sentence.getObject(0).getNormalized());
sentence = ConversationParser.parse("sell 10 bottles of poison");
assertFalse(sentence.hasError());
assertEquals("sell", sentence.getVerbString());
assertEquals(10, sentence.getObject(0).getAmount());
assertEquals("poison", sentence.getObject(0).getNormalized());
assertEquals("sell poison", sentence.getNormalized());
assertEquals("sell/VER poison/OBJ-FOO-FLU", sentence.toString());
sentence = ConversationParser.parse("sell 10 bottles of mega poison");
assertFalse(sentence.hasError());
assertEquals("sell", sentence.getVerbString());
assertEquals(10, sentence.getObject(0).getAmount());
assertEquals("mega poison", sentence.getObject(0).getNormalized());
assertEquals("sell mega poison", sentence.getNormalized());
assertEquals("sell/VER mega poison/OBJ-FOO-FLU", sentence.toString());
}