@Test
public void simpleTestForceMostRemoval() throws LoadException {

  // Test which contains a specific repetition index in only a small number of the rows -> should trigger a specific
  // ColPage to be built.
  // a[0] is contained in every row, a[1] only in 1 of 9.
  String json = "[ { " //
      + "\"a\": [ "//
  /* */ + "{ \"b\": 1 }, "//
  /* */ + "{ \"b\": 2 }"//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 3 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 4 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 5 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 6 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 7 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 8 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 9 } "//
      + "]}," //
      + "{ \"a\": [ "//
  /* */ + "{ \"b\": 10 } "//
      + "]}" //
  //
      + " ]";
  // GIVEN
  Table t = loadFromJson(100, json);
  // WHEN
  FlattenedTable flattenedTable = flattener.flattenTable(t, null, "a[*]", UUID.randomUUID());
  // THEN
  Assert.assertEquals(flattenedTable.getShards().size(), 1, "Expected correct table shard count");
  TableShard tableShard = flattenedTable.getShards().iterator().next();
  Assert.assertEquals(tableShard.getLowestRowId(), 100L, "Expected correct lowest row ID"); /* same as source table */
  Assert.assertEquals(tableShard.getNumberOfRowsInShard(), 10, "Expected correct number of rows.");
  Assert.assertEquals(tableShard.getColumns().keySet(), new HashSet<>(Arrays.asList("a.b")),
      "Expected correct columns.");
  SortedSet<SortedMap<String, Long>> expectedRows = new TreeSet<>(MAP_COMPARATOR);
  SortedMap<String, Long> row;
  for (long l = 1L; l <= 10; l++) {
    row = new TreeMap<>();
    row.put("a.b", l);
    expectedRows.add(row);
  }
  Assert.assertEquals(getAllRows(tableShard), expectedRows, "Expected to have correct rows.");
}