@Test
public void testScanWithEmptyRowLeftAfterLockClean() throws Exception {

  prepareScanData(new ColumnCoordinate[]{});
  writeLockAndData(COLUMN_WITH_ANOTHER_ROW, lastTs(prewriteTs));
  Mockito.when(mockRegister.isWorkerAlive(TestBase.CLIENT_TEST_ADDRESS)).thenReturn(false);
  ThemisScan pScan = prepareScan(TRANSACTION_COLUMNS);
  pScan.setCaching(10);
  ThemisScanner scanner = transaction.getScanner(TABLENAME, pScan);
  // no rows left after the lock has been cleaned
  checkAndCloseScanner(scanner);
  
  prepareScanData(new ColumnCoordinate[]{COLUMN, COLUMN_WITH_ANOTHER_FAMILY, COLUMN_WITH_ANOTHER_QUALIFIER});
  writeLockAndData(COLUMN_WITH_ANOTHER_ROW, lastTs(prewriteTs));
  Mockito.when(mockRegister.isWorkerAlive(TestBase.CLIENT_TEST_ADDRESS)).thenReturn(false);
  pScan = prepareScan(TRANSACTION_COLUMNS);
  pScan.setCaching(10);
  scanner = transaction.getScanner(TABLENAME, pScan);
  checkResultForROW(scanner.next());
  checkAndCloseScanner(scanner);
}