ViewExternalSubResourceDefinition extends BaseResourceDefinition { @Override public Set<SubResourceDefinition> getSubResourceDefinitions() { return Collections.emptySet(); } ViewExternalSubResourceDefinition(Resource.Type type); @Override String getPluralName(); @Override String getSingularName(); @Override Set<SubResourceDefinition> getSubResourceDefinitions();  }
@Test public void testGetSubResourceDefinitions() throws Exception { Resource.Type type = new Resource.Type("resource"); ViewExternalSubResourceDefinition definition = new ViewExternalSubResourceDefinition(type); Assert.assertEquals(Collections.emptySet(), definition.getSubResourceDefinitions()); }