@Test
public void testGetSubResourceDefinitions() {

  ResourceDefinition resource = new ClusterResourceDefinition();
  Set<SubResourceDefinition> subResources = resource.getSubResourceDefinitions();
  assertEquals(13, subResources.size());
  assertTrue(includesType(subResources, Resource.Type.Service));
  assertTrue(includesType(subResources, Resource.Type.Host));
  assertTrue(includesType(subResources, Resource.Type.Configuration));
  assertTrue(includesType(subResources, Resource.Type.Request));
  assertTrue(includesType(subResources, Resource.Type.Workflow));
  assertTrue(includesType(subResources, Resource.Type.ConfigGroup));
  assertTrue(includesType(subResources, Resource.Type.AlertDefinition));
  assertTrue(includesType(subResources, Resource.Type.ServiceConfigVersion));
  assertTrue(includesType(subResources, Resource.Type.ClusterPrivilege));
  assertTrue(includesType(subResources, Resource.Type.Alert));
  assertTrue(includesType(subResources, Resource.Type.ClusterStackVersion));
  assertTrue(includesType(subResources, Resource.Type.Artifact));
  assertTrue(includesType(subResources, Resource.Type.ClusterKerberosDescriptor));
}