CIPTool { public static boolean checkIfAllLigandsAreDifferent(ILigand[] ligands) { for (int i = 0; i < (ligands.length - 1); i++) { if (cipRule.compare(ligands[i], ligands[i + 1]) == 0) return false; } return true; }  static CIP_CHIRALITY getCIPChirality(LigancyFourChirality stereoCenter); static void label(IAtomContainer container); static CIP_CHIRALITY getCIPChirality(IAtomContainer container, ITetrahedralChirality stereoCenter); static CIP_CHIRALITY getCIPChirality(IAtomContainer container, IDoubleBondStereochemistry stereoCenter); static boolean checkIfAllLigandsAreDifferent(ILigand[] ligands); static ILigand[] order(ILigand[] ligands); static LigancyFourChirality defineLigancyFourChirality(IAtomContainer container, int chiralAtom,
            int ligand1, int ligand2, int ligand3, int ligand4, Stereo stereo); static ILigand defineLigand(IAtomContainer container, VisitedAtoms visitedAtoms, int chiralAtom,
            int ligandAtom); static ILigand[] getLigandLigands(ILigand ligand); static final int HYDROGEN; }
@Test public void testCheckIfAllLigandsAreDifferent() { Assert.assertTrue(CIPTool.checkIfAllLigandsAreDifferent(ligands)); }
@Test public void testCheckIfAllLigandsAreDifferent_False() { ILigand[] sameLigands = new ILigand[]{ligands[0], ligands[0], ligands[1], ligands[2]}; Assert.assertFalse(CIPTool.checkIfAllLigandsAreDifferent(sameLigands)); }