### Question:
MisspelledKeywordDistance { Optional<String> calculateDistance(String wrongToken) { return KEYWORDS.getSuggestions().stream() .map(item -> new Object[] {item, DISTANCE.apply(wrongToken, item)}) .sorted(comparingInt(o -> (int) o[1])) .filter(item -> !wrongToken.equals(item[0])) .filter(item -> (int) item[1] < 2) .map(item -> item[0].toString()) .findFirst(); }    }### Answer:
@Test void testSuggestionWithShortDistance() { Optional<String> moves = MisspelledKeywordDistance.calculateDistance("MOVES"); assertEquals("MOVE", moves.orElse("")); }
@Test void testTooLongDistanceNotPresent() { Optional<String> moves = MisspelledKeywordDistance.calculateDistance("123"); assertFalse(moves.isPresent()); }
@Test void testNoCommentSuggestions() { Optional<String> moves = MisspelledKeywordDistance.calculateDistance("#"); assertFalse(moves.isPresent()); }