NameStringifier implements StringifierIF<NameIF> { @Override public String toString(NameIF name) { if (name == null) return "[No name]"; return name.getValue(); }  @Override String toString(NameIF name);  }
@Test public void testTopicNameEmpty() { Assert.assertTrue("base name with no name did not stringify to \"\"", stringifier.toString(basename).equals("")); }
@Test public void testTopicName() { basename.setValue("basename"); Assert.assertTrue("base name stringified wrongly", stringifier.toString(basename).equals("basename")); }
@Test public void testVariantEmpty() { Assert.assertTrue("variant with no name did not stringify to \"\"", stringifier.toString(variant).equals("")); }
@Test public void testVariant() { variant.setValue("variant"); Assert.assertTrue("variant stringified wrongly", stringifier.toString(variant).equals("variant")); }