@Test
public void latestVersionOnlyComparisonsAreDone() throws IOException {

  byte[] filterValue = Bytes.toBytes("foobar");
  byte[] qualifier = Bytes.toBytes("someColumn");
  byte[] family = Bytes.toBytes("f");
  SingleColumnValueFilter filter =
      new SingleColumnValueFilter(
          family, qualifier, CompareFilter.CompareOp.EQUAL, new BinaryComparator(filterValue));
  filter.setFilterIfMissing(false);
  filter.setLatestVersionOnly(true);
  Filters.Filter adaptedFilter =
      UNDER_TEST.adapt(new FilterAdapterContext(new Scan(), null), filter);
  assertFilterIfNotMIssingMatches(family, qualifier, filterValue, true, adaptedFilter);
}