@Test public void testBlockMetadataHasProperDimensionBlockMapping() {

  Map<Integer, Integer> dimensionOrdinalToBlockMapping = new HashMap<Integer, Integer>();
  dimensionOrdinalToBlockMapping.put(0, 0);
  dimensionOrdinalToBlockMapping.put(1, 1);
  dimensionOrdinalToBlockMapping.put(2, 2);
  dimensionOrdinalToBlockMapping.put(3, 2);
  dimensionOrdinalToBlockMapping.put(4, 3);
  dimensionOrdinalToBlockMapping.put(5, 4);
  dimensionOrdinalToBlockMapping.put(6, 4);
  dimensionOrdinalToBlockMapping.put(7, 4);
  dimensionOrdinalToBlockMapping.put(8, 5);
  dimensionOrdinalToBlockMapping.put(9, 6);
  Map<Integer, Integer> dimensionOrdinalToBlockMappingActual =
      blockMetadataInfos.getDimensionOrdinalToBlockMapping();
  assertEquals(dimensionOrdinalToBlockMapping.size(),
      dimensionOrdinalToBlockMappingActual.size());
  Iterator<Entry<Integer, Integer>> iterator =
      dimensionOrdinalToBlockMapping.entrySet().iterator();
  while (iterator.hasNext()) {
    Entry<Integer, Integer> next = iterator.next();
    Integer integer = dimensionOrdinalToBlockMappingActual.get(next.getKey());
    if (integer != next.getValue()) {
      assertTrue(false);
    }
  }
  assertTrue(true);
}