### Question:
FeedResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { Set<SubResourceDefinition> setChildren = new HashSet<>(); setChildren.add(new SubResourceDefinition(Resource.Type.DRInstance)); return setChildren; } FeedResourceDefinition(); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }### Answer:
@Test public void testGetSubResourceDefinitions() throws Exception { FeedResourceDefinition definition = new FeedResourceDefinition(); Set<SubResourceDefinition> subResourceDefinitions = definition.getSubResourceDefinitions (); Assert.assertEquals(1, subResourceDefinitions.size()); SubResourceDefinition subResourceDefinition = subResourceDefinitions.iterator().next(); Assert.assertEquals(Resource.Type.DRInstance, subResourceDefinition.getType()); }