public virtual void TestDomainNames()
{
// Current lucene should not show the bug
StandardAnalyzer a2 = new StandardAnalyzer(Version.LUCENE_CURRENT);
// domain names
AssertAnalyzesTo(a2, "www.nutch.org", new System.String[]{"www.nutch.org"});
//Notice the trailing . See https://issues.apache.org/jira/browse/LUCENE-1068.
// the following should be recognized as HOST:
AssertAnalyzesTo(a2, "www.nutch.org.", new System.String[]{"www.nutch.org"}, new System.String[]{"<HOST>"});
// 2.3 should show the bug
a2 = new StandardAnalyzer(Version.LUCENE_23);
AssertAnalyzesTo(a2, "www.nutch.org.", new System.String[]{"wwwnutchorg"}, new System.String[]{"<ACRONYM>"});
// 2.4 should not show the bug
a2 = new StandardAnalyzer(Version.LUCENE_24);
AssertAnalyzesTo(a2, "www.nutch.org.", new System.String[]{"www.nutch.org"}, new System.String[]{"<HOST>"});
}