### Question:
EditDistance { public static int[] wordDistance(String s1, String s2, int chunkLen) { MinimalPerfectHash mph = new MinimalPerfectHash(true); TokenArray a1 = new TokenArray(mph, s1); TokenArray a2 = new TokenArray(mph, s2); EditSequence seq = new EditSequence(a1, a2, chunkLen); return new int[]{a1.length(), a2.length(), seq.length()}; }  static int charDistance(String s1, String s2, EdOpWeight w, int chunkLen); static int[] wordDistance(String s1, String s2, int chunkLen); static int[] wordDistance(String s1, String s2,
            WordSet stopwords, int chunkLen); static int distance(String first, String second,
            int chunkLen, EditDistanceType type); static void main(String[] args);  }### Answer:
@Test public void testWordDistance() { System.out.println("wordDistance"); String s1 = "p a t a t a"; String s2 = "a p t a"; int expResult = 3; int[] result = EditDistance.wordDistance(s1, s2, 10); assertEquals(expResult, result[2]); }