### Question:
SimpleCommonRulesRewriterFactory extends RewriterFactory { RulesCollection getRules() { return rules; } 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 testThatRulesAreParsed() throws IOException { final SimpleCommonRulesRewriterFactory factory = new SimpleCommonRulesRewriterFactory("someId", new StringReader("input =>\n DECORATE: deco1"), querqyParserFactory, true, namedStrategyFactories, defaultSelectionStrategyFactory); final RulesCollection rules = factory.getRules(); assertEquals(1, rules.getInstructions().size()); }