### Question:
Levenshtein { static int distance(String x, String y) { final var lev = new Levenshtein(); lev.maxCost = MAX_COST; return lev.calculate(x, y, 0); }    }### Answer:
@Test @DisplayName("Different example strings distance is calculated") void testZero(){ Assertions.assertEquals(0,Levenshtein.distance("same string","same string")); Assertions.assertEquals(1,Levenshtein.distance("same","seme")); Assertions.assertEquals(1,Levenshtein.distance("same","shame")); Assertions.assertEquals(1,Levenshtein.distance("same","sam")); Assertions.assertEquals(2,Levenshtein.distance("same","shama")); Assertions.assertEquals(2,Levenshtein.distance("same","sham")); Assertions.assertEquals(2,Levenshtein.distance("same","esam")); Assertions.assertEquals(3,Levenshtein.distance("same","xmek")); Assertions.assertEquals(4,Levenshtein.distance("same","xyzk")); }