@Category(SlowTest.class)
// MDL -> CML (slow) -> SMILES round tripping
@Test
public void testSFBug1014344() throws Exception {

    String filename = "data/mdl/bug1014344-1.mol";
    InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename);
    MDLReader reader = new MDLReader(ins, Mode.STRICT);
    IAtomContainer mol1 = reader.read(new AtomContainer());
    addImplicitHydrogens(mol1);
    SmilesGenerator sg = new SmilesGenerator();
    String molSmiles = sg.create(mol1);
    StringWriter output = new StringWriter();
    CMLWriter cmlWriter = new CMLWriter(output);
    cmlWriter.write(mol1);
    CMLReader cmlreader = new CMLReader(new ByteArrayInputStream(output.toString().getBytes()));
    IAtomContainer mol2 = ((IChemFile) cmlreader.read(new ChemFile())).getChemSequence(0).getChemModel(0)
            .getMoleculeSet().getAtomContainer(0);
    addImplicitHydrogens(mol2);
    String cmlSmiles = sg.create(new AtomContainer(mol2));
    Assert.assertEquals(molSmiles, cmlSmiles);
}