@Override
  public SelectResults query(String queryPredicate) throws FunctionDomainException,
      TypeMismatchException, NameResolutionException, QueryInvocationTargetException {
    QueryService qs = getCache().getLocalQueryService();
    DefaultQuery query = (DefaultQuery) qs
        .newQuery("select * from " + getFullPath() + " this where " + queryPredicate);
    final ExecutionContext executionContext = new QueryExecutionContext(null, getCache(), query);
    Object[] params = null;
    return (SelectResults) executeQuery(query, executionContext, params, getBucketSet());
  }
This instance method was added so that unit tests could mock it
geode-core/src/main/java/org/apache/geode/internal/cache/LocalDataSet.java