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