@Test
public void testGetInsertionIds() {

  final List<byte[]> ids = new ArrayList<>();
  final byte[][] ids1 = simpleIndexStrategy.getInsertionPartitionKeys(sfcIndexedRange);
  final int maxEstDuplicatesStrategy2 = 8 / ids1.length;
  final List<byte[]> ids2 =
      sfcIndexStrategy.getInsertionIds(
          sfcIndexedRange,
          maxEstDuplicatesStrategy2).getCompositeInsertionIds();
  for (final byte[] id1 : ids1) {
    for (final byte[] id2 : ids2) {
      ids.add(ByteArrayUtils.combineArrays(id1, id2));
    }
  }
  final Set<ByteArray> testIds =
      new HashSet<>(ids.stream().map(i -> new ByteArray(i)).collect(Collectors.toList()));
  final Set<ByteArray> compoundIndexIds =
      new HashSet<>(
          compoundIndexStrategy.getInsertionIds(
              compoundIndexedRange,
              8).getCompositeInsertionIds().stream().map(i -> new ByteArray(i)).collect(
                  Collectors.toList()));
  Assert.assertTrue(testIds.containsAll(compoundIndexIds));
  Assert.assertTrue(compoundIndexIds.containsAll(testIds));
}