}
@Test
public void testItemsWithDuplicates() {
List<PollItem> pollItems = new ArrayList<PollItem>();
pollItems.add(new PollItem("not duplicate"));
pollItems.add(new PollItem("duplicate"));
pollItems.add(new PollItem("duplicate"));
boolean isValid = validator.isValid(pollItems, validatorContext);
Assert.assertFalse(isValid, "The poll items with duplicates must be invalid");
}