@Test(expected = IllegalArgumentException.class)
public void medianBondLengthNoBonds() {

    IAtomContainer container = new AtomContainer();
    container.addAtom(atomAt(new Point2d(0, 0)));
    container.addAtom(atomAt(new Point2d(0, 1.5)));
    container.addAtom(atomAt(new Point2d(0, -1.5)));
    container.addAtom(atomAt(new Point2d(0, 5)));
    GeometryTools.getBondLengthMedian(container);
}