ResourceRef implements Resource { @Override public List<Resource> getDependencies() { return dependencies; } ResourceRef(String identifier,
                       ResourceType type);  ResourceRef(String identifier,
                       ResourceType type,
                       List<Resource> dependencies); @Override String getIdentifier(); void setIdentifier(String identifier); @Override ResourceType getResourceType(); void setResourceType(ResourceType type); @Override List<Resource> getDependencies(); void setDependencies(List<Resource> deps);  }
@Test public void testDependencies() { ResourceRef dep1 = new ResourceRef("dep1", () -> "type"); ResourceRef ref = new ResourceRef("id", () -> "type", Arrays.asList(dep1)); assertNotNull(ref.getDependencies()); assertEquals(ref.getDependencies().size(), 1); assertEquals(ref.getDependencies().get(0), dep1); }