### Question:
KeywordQueryParser extends StandardQueryParser { public void setAllowFuzzyAndWildcard(final boolean allowFuzzyWildcard) { this.getQueryConfigHandler().set(KeywordConfigurationKeys.ALLOW_FUZZY_AND_WILDCARD, allowFuzzyWildcard); } KeywordQueryParser(); @Override void setDefaultOperator(final Operator operator); void setQNames(final Properties qnames); void setAllowFuzzyAndWildcard(final boolean allowFuzzyWildcard); void setDatatypeAnalyzers(final Map<String, Analyzer> dtAnalyzers); @Override void setAnalyzer(final Analyzer analyzer); void setRootLevel(final int level); void setAllowTwig(final boolean allowTwig); @Override String toString();  }### Answer:
@Test(expected=QueryNodeException.class) public void testFuzzyQuery1() throws Exception { final KeywordQueryParser parser = new KeywordQueryParser(); parser.setAllowFuzzyAndWildcard(false); parser.parse("miche~", SirenTestCase.DEFAULT_TEST_FIELD); }
@Test(expected=QueryNodeException.class) public void testWildcardQuery1() throws Exception { final KeywordQueryParser parser = new KeywordQueryParser(); parser.setAllowFuzzyAndWildcard(false); parser.parse("miche*", SirenTestCase.DEFAULT_TEST_FIELD); }