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