//Setting up region
String method = this.getName();
initHRegion(tableName, method, fam1);
//Putting data in key
Put put = new Put(row1);
put.add(fam1, qf1, val1);
//checkAndPut with correct value
boolean res = region.checkAndPut(row1, fam1, qf1, emptyVal, put, lockId,
true);
assertTrue(res);
// not empty anymore
res = region.checkAndPut(row1, fam1, qf1, emptyVal, put, lockId, true);
assertFalse(res);
put = new Put(row1);
put.add(fam1, qf1, val2);
//checkAndPut with correct value
res = region.checkAndPut(row1, fam1, qf1, val1, put, lockId, true);
assertTrue(res);
}