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