try {
            Statistics.calculateMedian(list, false);
        }
        catch (ClassCastException e) {
            pass = true;
        }
        assertTrue(pass);

        pass = false;
        try {
            Statistics.calculateMedian(list, true);
        }
        catch (ClassCastException e) {
            pass = true;
        }
        assertTrue(pass);