@Test
public void simpleJson() throws LoadException {

  // GIVEN
  String json = "[ { \"a\": 1, \"b\": 1},{\"a\": 2, \"b\": 3}]";
  // WHEN
  TableShard tableShard =
      Iterables.getOnlyElement(loader.load(0L, new BigByteBuffer(json.getBytes()), TABLE, colInfo));
  // THEN
  Assert.assertEquals(tableShard.getLongColumns().size(), 2, "Expected both long columns to be available");
  Set<Pair<Long, Long>> expectedValues = new HashSet<>();
  expectedValues.add(new Pair<>(1L, 1L));
  expectedValues.add(new Pair<>(2L, 3L));
  Set<Pair<Long, Long>> actualValues = new HashSet<>();
  LongStandardColumnShard colA = tableShard.getLongColumns().get("a");
  LongStandardColumnShard colB = tableShard.getLongColumns().get("b");
  for (long i = tableShard.getLowestRowId(); i < tableShard.getLowestRowId()
      + tableShard.getNumberOfRowsInShard(); i++) {
    Long valueA = resolveSingleRowValue(colA, i);
    Long valueB = resolveSingleRowValue(colB, i);
    actualValues.add(new Pair<>(valueA, valueB));
  }
  Assert.assertEquals(actualValues, expectedValues, "Expected correct values to be encoded");
}