### Question:
TaxonomyInterpreter { @VisibleForTesting protected static boolean checkFuzzy(NameUsageMatch usageMatch, SpeciesMatchRequest matchRequest) { boolean isFuzzy = MatchType.FUZZY == usageMatch.getDiagnostics().getMatchType(); boolean isEmptyTaxa = Strings.isNullOrEmpty(matchRequest.getKingdom()) && Strings.isNullOrEmpty(matchRequest.getPhylum()) && Strings.isNullOrEmpty(matchRequest.getClazz()) && Strings.isNullOrEmpty(matchRequest.getOrder()) && Strings.isNullOrEmpty(matchRequest.getFamily()); return isFuzzy && isEmptyTaxa; }  static BiConsumer<ExtendedRecord, TaxonRecord> taxonomyInterpreter(
      KeyValueStore<SpeciesMatchRequest, NameUsageMatch> kvStore);  }### Answer:
@Test public void checkFuzzyPositiveTest() { SpeciesMatchRequest matchRequest = SpeciesMatchRequest.builder() .withKingdom("") .withPhylum("") .withClazz("") .withOrder("") .withFamily("") .withGenus("something") .build(); NameUsageMatch usageMatch = new NameUsageMatch(); Diagnostics diagnostics = new Diagnostics(); diagnostics.setMatchType(MatchType.FUZZY); usageMatch.setDiagnostics(diagnostics); boolean result = TaxonomyInterpreter.checkFuzzy(usageMatch, matchRequest); Assert.assertTrue(result); }
@Test public void checkFuzzyNegativeTest() { SpeciesMatchRequest matchRequest = SpeciesMatchRequest.builder() .withKingdom("") .withPhylum("") .withClazz("") .withOrder("") .withFamily("something") .withGenus("something") .build(); NameUsageMatch usageMatch = new NameUsageMatch(); Diagnostics diagnostics = new Diagnostics(); diagnostics.setMatchType(MatchType.FUZZY); usageMatch.setDiagnostics(diagnostics); boolean result = TaxonomyInterpreter.checkFuzzy(usageMatch, matchRequest); Assert.assertFalse(result); }
@Test public void checkFuzzyHighrankTest() { SpeciesMatchRequest matchRequest = SpeciesMatchRequest.builder() .withKingdom("") .withPhylum("") .withClazz("") .withOrder("") .withFamily("") .withGenus("something") .build(); NameUsageMatch usageMatch = new NameUsageMatch(); Diagnostics diagnostics = new Diagnostics(); diagnostics.setMatchType(MatchType.HIGHERRANK); usageMatch.setDiagnostics(diagnostics); boolean result = TaxonomyInterpreter.checkFuzzy(usageMatch, matchRequest); Assert.assertFalse(result); }