@Test
    void testNullIntentModelException() {
        try {
            RewriterUtils.getSpellCorrected(new Query("willl smith"), true, true);
            fail();
        } catch (RuntimeException e) {
        }
    }
IntentModel is null
It should throw exception
container-search/src/test/java/com/yahoo/search/query/rewrite/test/MisspellRewriterTestCase.java