@Test
    public void testTokenizerCanPreserveCasing() {
        var keepCasing = new LinguisticsParameters(Language.ENGLISH, StemMode.SHORTEST, false, false);
        var tester = new OpenNlpLinguisticsTester();
        tester.assertTokenize("This IS a test",
                              keepCasing,
                              List.of("This", "IS", "a", "test"),
                              List.of("This", " ", "IS", " ", "a", " ", "test"));
    }
Test of tokenization, with stemming and accent removal

@author matskin
@author bratseth
opennlp-linguistics/src/test/java/com/yahoo/language/opennlp/OpenNlpTokenizationTestCase.java