    @Test
    public void testConvertMoments() {

        // integers from 0...1000
        double[] uniformPowerSums = {1001,500500,333833500,250500250000L};
        double[] convertedChebyshevMoments = MathUtil.powerSumsToChebyMoments(0, 1000, uniformPowerSums);

        double[] expectedChebyshevMoments = {1.0, 0, -.332, 0};
        assertArrayEquals(expectedChebyshevMoments, convertedChebyshevMoments, 1e-14);
    }