OntologyUtil { public boolean createIriToAttrMap(List<OntologyHierarchy> result) { String attrs = properties.getOntologyAttrs(); if (attrs == null) { return false; } iriToAttrMap.clear(); buildIriToAttrMap(attrs); return isValidIriMap(result); } private  OntologyUtil(); static OntologyUtil getInstance(); boolean createIriToAttrMap(List<OntologyHierarchy> result); boolean isValidIriMap(List<OntologyHierarchy> hierarchies); void buildIriToAttrMap(String ontologyAttr); OntologyHierarchyNameComparator getOntologyNameComparator(); void addUnclassifiedChild(List<OntologyHierarchy> children); OntologyHierarchy addUnclassifiedChild(OntologyHierarchy child); boolean isUnclassified(OntologyHierarchy hierarchy); String getUnclassifiedParentIri(OntologyHierarchy hierarchy); String getAttr(OntologyHierarchy hierarchy); Avu convertHierarchyToAvu(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(OntologyHierarchy hierarchy); AvuList convertHierarchiesToAvus(List<OntologyHierarchy> selectedHierarchies); List<String> getPathList(OntologyHierarchy hierarchy); List<List<String>> getAllPathsList(List<OntologyHierarchy> hierarchies); String getOrCreateHierarchyPathTag(OntologyHierarchy hierarchy); AvuList getBetaAvuList(); Avu getBetaAvu(); AvuList removeBetaAvu(List<Avu> result); OntologyHierarchy getHierarchyObject();  }
@Test public void testCreateIriToAttrMap_nullProperties() { when(propertiesMock.getOntologyAttrs()).thenReturn(null); uut.createIriToAttrMap(ontologyHierarchyListMock); verify(propertiesMock).getOntologyAttrs(); verifyZeroInteractions(iriToAttrMapMock); }