@Test
public void testEraseAndDataLock() throws IOException {

  writeLockAndData(COLUMN);
  lockCleaner.eraseLockAndData(COLUMN, prewriteTs);
  Assert.assertNull(readDataValue(COLUMN, prewriteTs));
  Assert.assertNull(readLockBytes(COLUMN));
  
  // erase lock by row
  for (ColumnCoordinate columnCoordinate : new ColumnCoordinate[]{COLUMN, COLUMN_WITH_ANOTHER_FAMILY, COLUMN_WITH_ANOTHER_QUALIFIER}) {
    writeLockAndData(columnCoordinate);
  }
  lockCleaner.eraseLockAndData(TABLENAME, PRIMARY_ROW.getRow(), PRIMARY_ROW.getColumns(), prewriteTs);
  for (ColumnCoordinate columnCoordinate : new ColumnCoordinate[]{COLUMN, COLUMN_WITH_ANOTHER_FAMILY, COLUMN_WITH_ANOTHER_QUALIFIER}) {
    Assert.assertNull(readLockBytes(columnCoordinate));
  }
}