@Test
public void testGenerateMoments() throws Exception {

    String filename = "data/mdl/sim3d1.sdf";
    IAtomContainer ac = loadMolecule(filename);
    float[] expected = new float[]{3.710034f, 1.780116f, 0.26535583f, 3.7945938f, 2.2801101f, 0.20164771f, 7.1209f,
            9.234152f, -0.49032924f, 6.6067924f, 8.89391f, -0.048539735f};
    float[] actual = DistanceMoment.generateMoments(ac);
    // no assertArrayEquals for junit 4.5
    for (int i = 0; i < expected.length; i++) {
        Assert.assertEquals(expected[i], actual[i], 0.000001);
    }
}