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