@Test
public void testCheckAndCleanMolecule() throws InvalidSmilesException {

    String fragmentMolSmiles = "C1=CC=CC=C1.C1=CC2=C(C=C1)C=CC=C2";
    SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
    IAtomContainer molecule = sp.parseSmiles(fragmentMolSmiles);
    IAtomContainer expResult = sp.parseSmiles("C1=CC2=C(C=C1)C=CC=C2");
    IAtomContainer result = MoleculeSanityCheck.checkAndCleanMolecule(molecule);
    assertEquals(expResult.getBondCount(), result.getBondCount());
}