@Test
    void testRewritesAsUnitEquivAndMaxRewrites() {
        utils.assertRewrittenQuery("?query=will smith&type=all&" +
                REWRITER_NAME + "." + RewriterConstants.REWRITES_AS_UNIT_EQUIV +
                "=true&" +
                REWRITER_NAME + "." + RewriterConstants.MAX_REWRITES + "=2",
                "query 'OR (AND will smith) \"will smith movies\" " +
                        "\"will smith news\"'");
    }
RewritesAsUnitEquiv is on and MaxRewrites is set to 2
container-search/src/test/java/com/yahoo/search/query/rewrite/test/NameRewriterTestCase.java