@Test
public void testGetSubResourceDefinitions() {

  final ResourceDefinition resource = new HostResourceDefinition();
  Set<SubResourceDefinition> subResources = resource.getSubResourceDefinitions();
  assertEquals(4, subResources.size());
  assertTrue(includesType(subResources, Resource.Type.HostComponent));
  assertTrue(includesType(subResources, Resource.Type.Alert));
  assertTrue(includesType(subResources, Resource.Type.HostStackVersion));
  assertTrue(includesType(subResources, Resource.Type.HostKerberosIdentity));
}