AtomTypeHybridizationDifference implements IDifference { @Override public String toString() { return name + ":" + (first == null ? "NA" : first) + "/" + (second == null ? "NA" : second); } private  AtomTypeHybridizationDifference(String name, IAtomType.Hybridization first, IAtomType.Hybridization second); static IDifference construct(String name, IAtomType.Hybridization first, IAtomType.Hybridization second); @Override String toString();  }
@Test public void testToString() { IDifference result = AtomTypeHybridizationDifference.construct("Foo", null, IAtomType.Hybridization.SP1); String diffString = result.toString(); Assert.assertNotNull(diffString); assertOneLiner(diffString); }