@Test
public void testDeleteMarkerForOneCellWithExactTimestamp() {

  long timestamp = 10000L;
  List<Cell> cells =
      Lists.newArrayList(
          HBaseCellUtils.createDataCell(ROW_KEY, COLUMN_FAMILY, QUALIFIER, timestamp),
          HBaseCellUtils.createDataCell(ROW_KEY, COLUMN_FAMILY, QUALIFIER, timestamp - 1),
          HBaseCellUtils.createDataCell(ROW_KEY, COLUMN_FAMILY, QUALIFIER, timestamp + 1));
  // A predicate that matches the first cell in the list.
  Predicate<Cell> predicate =
      predicateMaker.apply(
          HBaseCellUtils.deleteMarkerForOneCellWithExactTimestamp(
              ROW_KEY, COLUMN_FAMILY, QUALIFIER, timestamp));
  assertEquals(cells.get(0), Iterables.getOnlyElement(Iterables.filter(cells, predicate)));
  // Change qualifier and there should be no match.
  predicate =
      predicateMaker.apply(
          HBaseCellUtils.deleteMarkerForOneCellWithExactTimestamp(
              ROW_KEY, COLUMN_FAMILY, ANOTHER_QUALIFIER, timestamp));
  assertTrue(Iterables.isEmpty(Iterables.filter(cells, predicate)));
}