}
@Test
public void testPrefixFilterHaltsFiltering() throws Exception {
RowKeyFormat2 rowKeyFormat = createRowKeyFormat(1, INTEGER, LONG, LONG);
EntityIdFactory factory = EntityIdFactory.getFactory(rowKeyFormat);
FormattedEntityIdRowFilter filter = createFilter(rowKeyFormat, 100, null, 9000L);
Filter hbaseFilter = filter.toHBaseFilter(null);
EntityId passingEntityId = factory.getEntityId(100, 100L, 9000L);
byte[] passingHbaseKey = passingEntityId.getHBaseRowKey();
doInclusionAssert(rowKeyFormat, filter, passingEntityId, hbaseFilter, passingHbaseKey, INCLUDE);
boolean filterAllRemaining = hbaseFilter.filterAllRemaining();
String message = createFailureMessage(rowKeyFormat, filter, passingEntityId, hbaseFilter,
passingHbaseKey, filterAllRemaining);
assertEquals(message, false, filterAllRemaining);
EntityId failingEntityId = factory.getEntityId(101, 100L, 9000L);
byte[] failingHbaseKey = failingEntityId.getHBaseRowKey();
doInclusionAssert(rowKeyFormat, filter, failingEntityId, hbaseFilter, failingHbaseKey, EXCLUDE);
filterAllRemaining = hbaseFilter.filterAllRemaining();
message = createFailureMessage(rowKeyFormat, filter, failingEntityId, hbaseFilter,
failingHbaseKey, filterAllRemaining);