@Test
public void testAddLockAndWriteColumnToScan() {

  Scan scan = new Scan();
  ThemisCpUtil.addLockAndWriteColumnToScan(COLUMN, scan);
  checkReadWithLockAndWriteColumns(scan.getFamilyMap(), COLUMN);
  
  // scan with family
  scan = new Scan();
  scan.addFamily(ColumnUtil.LOCK_FAMILY_NAME);
  ThemisCpUtil.addLockAndWriteColumnToScan(COLUMN, scan);
  Assert.assertTrue(scan.getFamilyMap().containsKey(ColumnUtil.LOCK_FAMILY_NAME)
      && scan.getFamilyMap().get(ColumnUtil.LOCK_FAMILY_NAME) == null);
  checkReadWithWriteColumns(scan.getFamilyMap(), COLUMN);
}