### Question:
TupleAnalyzer extends Analyzer { public void registerDatatype(final char[] datatype, final Analyzer a) { if (!regLitAnalyzers.containsKey(datatype)) { regLitAnalyzers.put(datatype, a); } } TupleAnalyzer(final Version version, final Analyzer stringAnalyzer, final Analyzer anyURIAnalyzer); void setLiteralAnalyzer(final Analyzer analyzer); void setAnyURIAnalyzer(final Analyzer analyzer); void registerDatatype(final char[] datatype, final Analyzer a); void clearDatatypes();  }### Answer:
@Test public void testURINormalisation() throws Exception { final AnyURIAnalyzer uriAnalyzer = new AnyURIAnalyzer(TEST_VERSION_CURRENT); uriAnalyzer.setUriNormalisation(URINormalisation.LOCALNAME); _a = new TupleAnalyzer(TEST_VERSION_CURRENT, new StandardAnalyzer(TEST_VERSION_CURRENT), uriAnalyzer); _a.registerDatatype(XSDDatatype.XSD_ANY_URI.toCharArray(), uriAnalyzer); this.assertAnalyzesTo(_a, "<http: new String[] { "kingston", "trio", "the_kingston_trio", "http: new String[] { "word", "word", "word", "word" }, new int[] { 2, 1, 0, 0 }); }
@Test public void testURINormalisation2() throws Exception { final AnyURIAnalyzer uriAnalyzer = new AnyURIAnalyzer(TEST_VERSION_CURRENT); uriAnalyzer.setUriNormalisation(URINormalisation.FULL); _a = new TupleAnalyzer(TEST_VERSION_CURRENT, new StandardAnalyzer(TEST_VERSION_CURRENT), uriAnalyzer); _a.registerDatatype(XSDDatatype.XSD_ANY_URI.toCharArray(), uriAnalyzer); this.assertAnalyzesTo(_a, "<http: new String[] { "dbpedia", "resource", "kingston", "trio", "http: new String[] { "word", "word", "word", "word", "word" }, new int[] { 1, 1, 2, 1, 0 }); }