assertFalse(sentence.hasError());
assertEquals("i/SUB-PRO own/VER pig/OBJ-ANI-PLU, cow/OBJ-ANI, horse/SUB-ANI.", sentence.toString());
Set<String> names = new HashSet<String>();
names.add("horses");
NameSearch found = sentence.findMatchingName(names);
assertTrue(found.found());
assertEquals(1, found.getAmount());
assertEquals("horses", found.getName());
names = new HashSet<String>();
names.add("pig");
found = sentence.findMatchingName(names);
assertTrue(found.found());
assertEquals(2, found.getAmount());
assertEquals("pig", found.getName());
names = new HashSet<String>();
names.add("pigs");
found = sentence.findMatchingName(names);
assertTrue(found.found());
assertEquals(2, found.getAmount());
assertEquals("pigs", found.getName());
}