@Test
public void testGetQueryRanges() {

  final byte[][] simpleIndexRanges = simpleIndexStrategy.getQueryPartitionKeys(sfcIndexedRange);
  final List<ByteArrayRange> sfcIndexRanges =
      sfcIndexStrategy.getQueryRanges(sfcIndexedRange, 8).getCompositeQueryRanges();
  final List<ByteArrayRange> ranges =
      new ArrayList<>(simpleIndexRanges.length * sfcIndexRanges.size());
  for (final byte[] r1 : simpleIndexRanges) {
    for (final ByteArrayRange r2 : sfcIndexRanges) {
      final byte[] start = ByteArrayUtils.combineArrays(r1, r2.getStart());
      final byte[] end = ByteArrayUtils.combineArrays(r1, r2.getEnd());
      ranges.add(new ByteArrayRange(start, end));
    }
  }
  final Set<ByteArrayRange> testRanges = new HashSet<>(ranges);
  final Set<ByteArrayRange> compoundIndexRanges =
      new HashSet<>(
          compoundIndexStrategy.getQueryRanges(
              compoundIndexedRange,
              8).getCompositeQueryRanges());
  Assert.assertTrue(testRanges.containsAll(compoundIndexRanges));
  Assert.assertTrue(compoundIndexRanges.containsAll(testRanges));
}