@Test
public void getDistanceTestPartialSubstringMatch() {

    String needle = "needle";
    String noise = "bla";
    String haystack = "prefix needle" + noise + " postfix";
    Match match = levenshteinMatch(needle,haystack);
    assertThat(match.getDistance(), is(noise.length())) ;
}