### Question:
CveSearchGuesser { public List<Match> getBest(List<Match> matches, int threshold) { if(matches.size() == 0){ return Collections.emptyList(); } List<Match> bestMatches = new ArrayList<>(); int minDistance = matches.get(0).getDistance(); Iterator<Match> matchesIterator = matches.iterator(); Match current; do{ current = matchesIterator.next(); if(current.getDistance() > minDistance + threshold || current.getDistance() >= cutoff){ break; } bestMatches.add(current); }while(matchesIterator.hasNext()); return bestMatches; } CveSearchGuesser(CveSearchApi cveSearchApi); void setVendorThreshold(int vendorThreshold); void setProductThreshold(int productThreshold); void setCutoff(int cutoff); boolean addVendorGuesserIfNeeded(); boolean addProductGuesserIfNeeded(String vendor); List<Match> getBest(List<Match> matches, int threshold); List<Match> guessVendors(String vendorHaystack); List<Match> guessProducts(String vendor, String productHaystack); List<Match> guessVendorAndProducts(String haystack); List<Match> guessVendorAndProducts(String vendorHaystack, String productHaystack);  }### Answer:
@Test public void getBestZERO() { assert(cveSearchGuesser.getBest(Collections.emptyList(), Integer.MAX_VALUE).size() == 0); }