@Test
public <O> void testSupportsQuery_Positive_RootAndFilterQueriesAreBothAndQueriesAndChildrenOfFilterQueryAreChildrenOfRootQuery() {

    // A partial index on attribute Car.PRICE, which is filtered to only index "Blue" Ford and Honda cars.
    assertTrue(supportsQueryInternal(
            backingIndexSupportsQuery(lessThan(Car.PRICE, 5000.0)),
            and(in(Car.MANUFACTURER, "Ford", "Honda"), equal(Car.COLOR, Car.Color.BLUE)),
            and(lessThan(Car.PRICE, 5000.0), in(Car.MANUFACTURER, "Ford", "Honda"), equal(Car.COLOR, Car.Color.BLUE)),
            lessThan(Car.PRICE, 5000.0),
            noQueryOptions()
    ));
}