### Question:
SimpleCommonRulesRewriterFactory extends RewriterFactory { @Override public Set<Term> getGenerableTerms() { return rules.getGenerableTerms(); } SimpleCommonRulesRewriterFactory(final String rewriterId,
                                            final Reader reader, final QuerqyParserFactory querqyParserFactory,
                                            final boolean ignoreCase,
                                            final Map<String, SelectionStrategyFactory> selectionStrategyFactories,
                                            final SelectionStrategyFactory defaultSelectionStrategyFactory); @Override QueryRewriter createRewriter(final ExpandedQuery input,
                                        final SearchEngineRequestAdapter searchEngineRequestAdapter); @Override Set<Term> getGenerableTerms();  }### Answer:
@Test public void testThatGenerableTerms() throws IOException { final SimpleCommonRulesRewriterFactory factory = new SimpleCommonRulesRewriterFactory("someId", new StringReader("input1 =>\n SYNONYM: t1 t2\ninput2 =>\n SYNONYM: t3 t4"), querqyParserFactory, true, namedStrategyFactories, defaultSelectionStrategyFactory); final Set<Term> terms = factory.getGenerableTerms(); assertThat(terms, Matchers.containsInAnyOrder( new Term(null, "t1"), new Term(null, "t2"), new Term(null, "t3"), new Term(null, "t4"))); }