final KijiDataRequest dataRequest = KijiDataRequest.builder()
.addColumns(ColumnsDef.create().withMaxVersions(100).add("family", "column"))
.build();
// Do a get and verify the value (only one value should be present now).
KijiRowData rowData = mReader.get(mEntityId, dataRequest);
String s = rowData.getValue("family", "column", 0L).toString();
assertEquals(s, "Value at timestamp 0.");
// Write a second value, with a more-recent timestamp.
mWriter.put(mEntityId, "family", "column", 1L, "Value at timestamp 1.");
// Do a get and verify that both values are present.
rowData = mReader.get(mEntityId, dataRequest);
assertTrue(rowData.containsCell("family", "column", 0L));
assertTrue(rowData.containsCell("family", "column", 1L));
// The most-recent value should be the one with the highest timestamp!
assertEquals(
"Value at timestamp 1.", rowData.getMostRecentValue("family", "column").toString());
}