@Test
public void testRemoveNotRequiredLockColumns() {

  Get get = new Get(ROW);
  get.addFamily(FAMILY);
  get.addColumn(ANOTHER_FAMILY, ANOTHER_QUALIFIER);
  List<KeyValue> sourceKvs = new ArrayList<KeyValue>();
  sourceKvs.add(KEYVALUE);
  Column lockColumn = ColumnUtil.getLockColumn(FAMILY, QUALIFIER);
  KeyValue lockKv = new KeyValue(ROW, lockColumn.getFamily(), lockColumn.getQualifier(), PREWRITE_TS,
    Type.Put, VALUE);
  sourceKvs.add(lockKv);
  lockColumn = ColumnUtil.getLockColumn(ANOTHER_FAMILY, QUALIFIER);
  sourceKvs.add(new KeyValue(ROW, lockColumn.getFamily(), lockColumn.getQualifier(), PREWRITE_TS,
      Type.Put, VALUE));
  Result result = ThemisCpUtil.removeNotRequiredLockColumns(get.getFamilyMap(), new Result(
      sourceKvs));
  Assert.assertEquals(2, result.size());
  Assert.assertTrue(KEYVALUE.equals(result.list().get(0)));
  Assert.assertTrue(lockKv.equals(result.list().get(1)));
}