HierarchyNode implements Serializable { public Set<File> getDependencies() { return Collections.unmodifiableSet(dependencies); } HierarchyNode(File file, HierarchyNode parent); void addDependency(HierarchyNode node); void addMissingDependency(String name); boolean hasDependencies(); File getFile(); Set<File> getDependencies(); Set<String> getMissingDependencies(); boolean containsDependency(File dependency); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test(expected = UnsupportedOperationException.class) public void getDependencies() { root.getDependencies().add(new File()); }