CveSearchGuesser { public List<Match> guessVendors(String vendorHaystack) throws IOException { if (!addVendorGuesserIfNeeded()){ throw new IOException("Was not able to instantiate vendor guesser"); } return getBest(vendorMatcher.getMatches(vendorHaystack), vendorThreshold); } 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);  }
@Test public void guessVendorTestApacheFullMatch() throws Exception { String apache = "apache"; String result2 = this.cveSearchGuesser.guessVendors(apache).get(0).getNeedle(); assert(result2.equals(apache)); }