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