QueryableIndex { public Where getRules() { return new Where("Rules"); } QueryableIndex(final Rules rules,
                          final Columns columns,
                          final ObjectTypes objectTypes); Where getRules(); Where getColumns(); Where getObjectTypes();  }
@Test public void queryAllRules() throws Exception { queryableIndex.getRules() .where(Rule.index() .any()) .select() .all(rulesQueryCallback); verify(rulesQueryCallback).callback(rulesArgumentCaptor.capture()); assertEquals(3, rulesArgumentCaptor.getValue() .size()); }