### Question:
KeywordQueryParser extends StandardQueryParser { public void setDatatypeAnalyzers(final Map<String, Analyzer> dtAnalyzers) { this.getQueryConfigHandler().set(KeywordConfigurationKeys.DATATYPES_ANALYZERS, dtAnalyzers); } 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=AssertionError.class) public void testNumericDatatypeWrongPrecision() throws Exception { final KeywordQueryParser parser = new KeywordQueryParser(); final Map<String, Analyzer> datatypes = new HashMap<String, Analyzer>(); datatypes.put("int", new IntNumericAnalyzer(4)); parser.setDatatypeAnalyzers(datatypes); final NodeQuery rangeWrong = NodeNumericRangeQuery.newIntRange(SirenTestCase.DEFAULT_TEST_FIELD, 42, 12, 21, true, true); assertEquals(new LuceneProxyNodeQuery(rangeWrong), parser.parse("int([12 TO 21])", SirenTestCase.DEFAULT_TEST_FIELD)); }