@Test
public void testSFBug2051597() throws Exception {

    String smiles = "c1(c2ccc(c8ccccc8)cc2)" + "c(c3ccc(c9ccccc9)cc3)" + "c(c4ccc(c%10ccccc%10)cc4)"
            + "c(c5ccc(c%11ccccc%11)cc5)" + "c(c6ccc(c%12ccccc%12)cc6)" + "c1(c7ccc(c%13ccccc%13)cc7)";
    SmilesParser smilesParser = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer cdkMol = smilesParser.parseSmiles(smiles);
    SmilesGenerator smilesGenerator = new SmilesGenerator();
    String genSmiles = smilesGenerator.create(cdkMol);
    // check that we have the appropriate ring closure symbols
    Assert.assertTrue("There were'nt any % ring closures in the output", genSmiles.indexOf("%") >= 0);
    Assert.assertTrue(genSmiles.indexOf("%10") >= 0);
    Assert.assertTrue(genSmiles.indexOf("%11") >= 0);
    Assert.assertTrue(genSmiles.indexOf("%12") >= 0);
    Assert.assertTrue(genSmiles.indexOf("%13") >= 0);
    // check that we can read in the SMILES we got
    IAtomContainer cdkRoundTripMol = smilesParser.parseSmiles(genSmiles);
    Assert.assertNotNull(cdkRoundTripMol);
}