@Test
public void testBug3040273() throws Exception {

    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    String testSmiles = "C1(C(C(C(C(C1Br)Br)Br)Br)Br)Br";
    IAtomContainer mol = sp.parseSmiles(testSmiles);
    IsotopeFactory fact = Isotopes.getInstance();
    fact.configureAtoms(mol);
    SmilesGenerator sg = new SmilesGenerator();
    String smiles = sg.create((IAtomContainer) mol);
    IAtomContainer mol2 = sp.parseSmiles(smiles);
    Assert.assertTrue(new UniversalIsomorphismTester().isIsomorph(mol, mol2));
}