@Test
    public void testTimeStep_ANNUAL_MEAN() throws Exception {
        printDebug("----------------------------");
        printDebug("Annual Mean: " + this.toString());
        printDebug("----------------------------");
        CSTable t = DataIO.table(r, "obs");
        Assert.assertNotNull(t);

        // 4 YEARS
        Date start = Conversions.convert("1981-10-13", Date.class);
        Date end = Conversions.convert("1985-7-25", Date.class);


        //System.out.println("Start = " + start.toString() + "; End = " + end.toString());
        double[] mean = DataIO.getColumnDoubleValuesInterval(start, end, t, "runoff[0]", DataIO.ANNUAL_MEAN);

        double[] goldenMean = new double[5];
        goldenMean[0] = 23184 / 80.0; // for 1981
        goldenMean[1] = 250482 / 365.0; // 1982
        goldenMean[2] = 320073 / 365.0; // 1983
        goldenMean[3] = 158468 / 366.0; // 1984 
        goldenMean[4] = 77621 / 206.0; // 1985 
        for (int i = 0; i < mean.length; i++) {
            printDebug("AnnualMean[" + i + "] = " + mean[i] + ";\tGolden AnnualMean[" + i + "] = " + goldenMean[i]);

        }

        Assert.assertArrayEquals(goldenMean, mean, 0);
    }