static int evaluateLevenshteinDistance(LevenshteinDistance levenshteinDistance, String term, String text) {
        logger.debug("evaluateLevenshteinDistance {} {}", term, text);
        return levenshteinDistance.apply(term, text);
    }
@Test
    void evaluateLevenshteinDistanceSplitText() {
        String toSearch = "brown fox";
        String toScan = "brown fox";
        LevenshteinDistance levenshteinDistance = new LevenshteinDistance(0);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(0);
        levenshteinDistance = new LevenshteinDistance(1);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(0);
        levenshteinDistance = new LevenshteinDistance(2);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(0);
        toScan = "brown foxy";
        levenshteinDistance = new LevenshteinDistance(0);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(-1);
        levenshteinDistance = new LevenshteinDistance(1);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(1);
        levenshteinDistance = new LevenshteinDistance(2);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(1);
        toScan = "browny foxy";
        levenshteinDistance = new LevenshteinDistance(0);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(-1);
        levenshteinDistance = new LevenshteinDistance(1);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(-1);
        levenshteinDistance = new LevenshteinDistance(2);
        assertThat(KiePMMLTextIndex.evaluateLevenshteinDistance(levenshteinDistance, toSearch, toScan)).isEqualTo(2);
    }