ViewSubResourceDefinition extends BaseResourceDefinition { @Override public String getSingularName() { return resourceConfiguration.getName(); } ViewSubResourceDefinition(ViewEntity viewDefinition, ResourceConfig resourceConfiguration); @Override String getPluralName(); @Override String getSingularName(); @Override synchronized Set<SubResourceDefinition> getSubResourceDefinitions(); ResourceConfig getResourceConfiguration();  }
@Test public void testGetSingularName() throws Exception { ViewSubResourceDefinition viewSubResourceDefinition = getViewSubResourceDefinition(); Assert.assertEquals("resource", viewSubResourceDefinition.getSingularName()); }