@Test
    @Timeout(5000)
    public void testOptimaizeRegexBug() throws Exception {
        //confirm TIKA-2777 doesn't affect langdetect's Optimaize
        LanguageDetector detector = new OptimaizeLangDetector().setShortText(false).loadModels();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 50000; i++) {
            sb.append('a');
        }
        detector.detect(sb.toString());
    }
Test correct detection for the many (short) translations of the
"Universal Declaration of Human Rights (Article 1)", at
http://www.omniglot.com/udhr
<p>
Also make sure we get uncertain results for some set of unsupported
languages.

@throws Exception
tika-langdetect/tika-langdetect-optimaize/src/test/java/org/apache/tika/langdetect/optimaize/OptimaizeLangDetectorTest.java