package com.sematext.lucene.query.extractor;

import com.google.common.collect.ImmutableList;
import java.util.List;
import org.apache.lucene.search.Query;

public class TestQueryExtractor {

  public static final ImmutableList<QueryExtractor<? extends Query>> DEFAULT_EXTRACTORS = ImmutableList.of(
      new FakeExtractor(),
      new TermQueryExtractor()
  );

  private static class FakeExtractor extends QueryExtractor<Query> {

    public FakeExtractor() {
      super(Query.class);
    }

    @Override
    public void extract(Query q, Iterable<QueryExtractor<? extends Query>> extractors, List<Query> extractedQueries) {
      extractedQueries.add(q);
    }

  }

}

@@ -106,24 +106,46 @@
 .util.List;%0A
+import java.util.Set;%0A
 import org.a
@@ -682,15 +682,219 @@
 %0A    %7D%0A%0A
+    @Override%0A    public void extractSubQueriesFields(Query q, Iterable%3CQueryExtractor%3C? extends Query%3E%3E extractors,%0A            Set%3CString%3E extractedFields) throws UnsupportedOperationException %7B%0A    %7D%0A%0A
   %7D%0A%0A%7D%0A

Fix test