@Test
public void testTopicNameItemIds() throws MalformedURLException {

  TopicIF topic = builder.makeTopic();
  TopicNameIF bn = builder.makeTopicName(topic, "test");
  bn.addItemIdentifier(new URILocator("http://psi.example.org"));
  TopicNameIF bn2 = builder.makeTopicName(topic, "test");
  bn2.addItemIdentifier(new URILocator("http://psi.example.com"));
  DuplicateSuppressionUtils.removeDuplicates(topic);
  Assert.assertTrue("duplicate base names were not removed",
             topic.getTopicNames().size() == 1);
  bn = (TopicNameIF) topic.getTopicNames().iterator().next();
  Assert.assertTrue("item IDs were not merged",
             bn.getItemIdentifiers().size() == 2);
}