@Test
public void testGetLigandLigands() throws Exception {

    IAtomContainer molecule = smiles.parseSmiles("CC(C)C(CC)(C(C)(C)C)[H]");
    ILigand ligand = CIPTool.defineLigand(molecule, new VisitedAtoms(), 3, 1);
    ILigand[] sideChains = CIPTool.getLigandLigands(ligand);
    Assert.assertEquals(2, sideChains.length);
    ligand = CIPTool.defineLigand(molecule, new VisitedAtoms(), 3, 4);
    sideChains = CIPTool.getLigandLigands(ligand);
    Assert.assertEquals(1, sideChains.length);
    ligand = CIPTool.defineLigand(molecule, new VisitedAtoms(), 3, 6);
    sideChains = CIPTool.getLigandLigands(ligand);
    Assert.assertEquals(3, sideChains.length);
    ligand = CIPTool.defineLigand(molecule, new VisitedAtoms(), 3, 10);
    sideChains = CIPTool.getLigandLigands(ligand);
    Assert.assertEquals(0, sideChains.length);
}