@Test
public void getDistanceTestUpToPrefixMatch() {

    String needle = "needle";
    String haystack = "prefix needle";
    Match match = levenshteinMatch(needle,haystack);
    assertThat(match.getDistance(), is(0));
}