@Test
public void testVariantRemovalWithScope() {

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