@Test
public void testGetSubResourceDefinitions() {

  ResourceDefinition resource = new ServiceResourceDefinition();
  Set<SubResourceDefinition> subResources = resource.getSubResourceDefinitions();
  assertEquals(3, subResources.size());
  assertTrue(includesType(subResources, Resource.Type.Component));
  assertTrue(includesType(subResources, Resource.Type.Alert));
  assertTrue(includesType(subResources, Resource.Type.Artifact));
}