@Test
public void medianBondLength() {

    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)));
    container.addBond(0, 1, IBond.Order.SINGLE);
    container.addBond(0, 2, IBond.Order.SINGLE);
    container.addBond(0, 3, IBond.Order.SINGLE);
    assertThat(GeometryTools.getBondLengthMedian(container), is(1.5));
}