@Test
public void testRegisterFormat() throws IOException {

    factory.registerFormat(new DummyFormat());
    StringReader reader = new StringReader("DummyFormat:");
    IChemFormat format = factory.guessFormat(reader);
    Assert.assertNotNull(format);
    Assert.assertTrue(format instanceof DummyFormat);
}