@Test
public void testGetSubResourceDefinitions() throws Exception {

  final RepositoryVersionResourceDefinition resourceDefinition = new RepositoryVersionResourceDefinition();
  final Set<SubResourceDefinition> subResourceDefinitions = resourceDefinition.getSubResourceDefinitions ();
  final Iterator<SubResourceDefinition> iterator = subResourceDefinitions.iterator();
  Assert.assertEquals(Resource.Type.OperatingSystem, iterator.next().getType());
  Assert.assertEquals(1, subResourceDefinitions.size());
}