@Test
public void testColumnRangeFilterWithASingleFamily_startAndEnd() throws IOException {

  ColumnRangeFilter filter =
      new ColumnRangeFilter(Bytes.toBytes("a"), true, Bytes.toBytes("b"), false);
  Scan familyScan = new Scan().addFamily(Bytes.toBytes("foo"));
  Filters.Filter expected =
      filterAdapter.adapt(new FilterAdapterContext(familyScan, null), filter);
  ColumnRange columnRange = expected.toProto().getColumnRangeFilter();
  Assert.assertEquals(0, columnRange.getStartQualifierOpen().size());
  Assert.assertEquals("a", toString(columnRange.getStartQualifierClosed()));
  Assert.assertEquals("b", toString(columnRange.getEndQualifierOpen()));
  Assert.assertEquals(0, columnRange.getEndQualifierClosed().size());
}