function testSerialize() {
  var index = getSampleIndex(10);

  var serialized = index.serialize();
  assertEquals(1, serialized.length);
  assertEquals(lf.index.RowId.ROW_ID, serialized[0].id());

  var deserialized = lf.index.RowId.deserialize('dummyName', serialized);
  checkGetRange(deserialized);
}
Tests that serializing and deserializing produces the original index.