final String[] kinds = { KIND_NAME };
// Create Spreadsheet
GbSpreadsheetService gss = new GbSpreadsheetService(authSubToken);
SpreadsheetEntry spreadsheet = gss.createSpreadsheet(Arrays.asList(kinds));
try {
// Get Data from Datastore.
final List<GbEntity> srcData = GbDatastoreService.getData(null, KIND_NAME, COUNT);
// Dump Data to Spreadsheet.
List<GbProperty> properties = GbDatastoreService.getProperties(KIND_NAME);
final String tableId = gss.prepareWorksheet(spreadsheet.getKey(), KIND_NAME, properties);
gss.dumpData(spreadsheet.getKey(), KIND_NAME, tableId, srcData, false);
// (Retry) Dump Data to Spreadsheet.
gss.dumpData(spreadsheet.getKey(), KIND_NAME, tableId, srcData, true);
// Get Data from Spreadsheet
final List<GbEntity> midData =
gss.getDataOrNull(spreadsheet.getKey(), KIND_NAME, 3, COUNT);
// Compare
for (int i = 0; i < srcData.size(); i++) {
final GbEntity src = srcData.get(i);
for (int j = 0; j < midData.size(); j++) {