WriterFactory { public int formatCount() { if (formats == null) loadFormats(); return formats.size(); } WriterFactory(); void registerWriter(Class<?> writer); IChemFormat[] findChemFormats(int features); int formatCount(); IChemObjectWriter createWriter(IChemFormat format);  }
@Test public void testFormatCount() { Assert.assertTrue(factory.formatCount() > 0); }