HpoIdChecker { public static HpoIdChecker of(Map<String, PhenotypeTerm> termIdToTerms) { Objects.requireNonNull(termIdToTerms); return new HpoIdChecker(termIdToTerms); } private  HpoIdChecker(Map<String, PhenotypeTerm> termIdToTerms); static HpoIdChecker of(Map<String, PhenotypeTerm> termIdToTerms); String getCurrentId(String hpoId); @Nullable PhenotypeTerm getCurrentTerm(String hpoId);  }
@Test void throwsNullPointerFromConstructorWithNullInput() { assertThrows(NullPointerException.class, () -> HpoIdChecker.of(null)); }