@Test
public void testFindBrowseOnlyReturnsRelevantData() {

    Text locator = TestData.getText();
    record = getRecord(locator);
    for (int i = 0; i < 100; i++) {
        for (int j = 0; j <= i; j++) {
            record.append(getRevision(locator,
                    Value.wrap(Convert.javaToThrift(j)),
                    PrimaryKey.wrap(i)));
        }
    }
    Map<PrimaryKey, Set<Value>> data = ((IndexRecord) record).explore(
            Operator.GREATER_THAN, Value.wrap(Convert.javaToThrift(50)));
    for (int i = 0; i < 100; i++) {
        PrimaryKey pk = PrimaryKey.wrap(i);
        if(i > 50) {
            Assert.assertTrue(data.containsKey(pk));
            Assert.assertEquals(i - 50, data.get(pk).size());
            for (Value value : data.get(pk)) {
                Assert.assertTrue(value.compareTo(
                        Value.wrap(Convert.javaToThrift(50))) > 0);
            }
        }
        else {
            Assert.assertFalse(data.containsKey(pk));
        }
    }
}