@Test public void testGetMaskedByteRangeGivingProperMaksedByteRangeOnlyForDictionaryKey() {

  List<QueryDimension> dimensions = new ArrayList<QueryDimension>();
  for (int i = 0; i < 2; i++) {
    QueryDimension dimension = new QueryDimension(segmentProperties.getDimensions().get(i).getColName());
    dimension.setDimension(segmentProperties.getDimensions().get(i));
    dimensions.add(dimension);
  }
  int[] maskedByteRange =
      QueryUtil.getMaskedByteRange(dimensions, segmentProperties.getDimensionKeyGenerator());
  int[] expectedMaskedByteRange = { 0 };
  for (int i = 0; i < maskedByteRange.length; i++) {
    assertEquals(expectedMaskedByteRange[i], maskedByteRange[i]);
  }
}