@Test
public void getTreeCuboidSchedulerTest() {

    Map<Long, Long> cuboidsWithRowCnt = cubeInstance.getCuboids();
    TreeCuboidScheduler.CuboidTree.createFromCuboids(Lists.newArrayList(cuboidsWithRowCnt.keySet()),
            new TreeCuboidScheduler.CuboidCostComparator(cuboidsWithRowCnt));
    List<Long> cuboids = Lists.newArrayList(cuboidsWithRowCnt.keySet());
    Collections.sort(cuboids);
    for (Long cuboid : cuboids) {
        System.out.println(cuboid + ":" + cuboidsWithRowCnt.get(cuboid));
    }
    Assert.assertNotNull(cuboidsWithRowCnt.get(255L));
}