@Test
public void testTopicNameAndVariantNameRemovalWithScope() {

  TopicIF theme1 = builder.makeTopic();
  TopicIF theme2 = builder.makeTopic();
  
  TopicIF topic = builder.makeTopic();
  TopicNameIF bn = builder.makeTopicName(topic, "test");
  bn.addTheme(theme1);
  bn.addTheme(theme2);
  VariantNameIF vn = builder.makeVariantName(bn, "duplicate");
  
  TopicNameIF bn2 = builder.makeTopicName(topic, "test");
  bn2.addTheme(theme1);
  bn2.addTheme(theme2);
  vn = builder.makeVariantName(bn, "duplicate");
  DuplicateSuppressionUtils.removeDuplicates(topic);
  Assert.assertTrue("duplicate base names were not removed",
         topic.getTopicNames().size() == 1);
  bn = (TopicNameIF) topic.getTopicNames().iterator().next();
  Assert.assertTrue("duplicate variant names were not removed",
         bn.getVariants().size() == 1);
}