KeyOnlyFilterAdapter extends TypedFilterAdapterBase<KeyOnlyFilter> { @Override public FilterSupportStatus isFilterSupported(FilterAdapterContext context, KeyOnlyFilter filter) { if (filter.transformCell(TEST_CELL).getValueLength() != 0) { return FilterSupportStatus.newNotSupported( "KeyOnlyFilters with lenAsVal = true are not supported"); } return FilterSupportStatus.SUPPORTED; }  @Override Filters.Filter adapt(FilterAdapterContext context, KeyOnlyFilter filter); @Override FilterSupportStatus isFilterSupported(FilterAdapterContext context, KeyOnlyFilter filter);  }
@Test public void lengthAsValIsNotSupported() { KeyOnlyFilter filter = new KeyOnlyFilter(true); Assert.assertFalse(filterAdapter.isFilterSupported(emptyScanContext, filter).isSupported()); }