Java search engine test