CIPTool { public static ILigand[] order(ILigand[] ligands) { ILigand[] newLigands = new ILigand[ligands.length]; System.arraycopy(ligands, 0, newLigands, 0, ligands.length); Arrays.sort(newLigands, cipRule); return newLigands; }  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 testOrder() { ILigand[] ligandCopy = CIPTool.order(ligands); Assert.assertEquals("H", ligandCopy[0].getLigandAtom().getSymbol()); Assert.assertEquals("Cl", ligandCopy[1].getLigandAtom().getSymbol()); Assert.assertEquals("Br", ligandCopy[2].getLigandAtom().getSymbol()); Assert.assertEquals("I", ligandCopy[3].getLigandAtom().getSymbol()); }