InstanceResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { return Collections.emptySet(); } InstanceResourceDefinition(); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }
@Test public void testGetSubResourceDefinitions() throws Exception { InstanceResourceDefinition definition = new InstanceResourceDefinition(); Set<SubResourceDefinition> subResourceDefinitions = definition.getSubResourceDefinitions (); Assert.assertTrue(subResourceDefinitions.isEmpty()); }