private void registerChild1PluginV1() throws Exception {
// register the plugin, load the new type and test to make sure its what we expect
createdJarFiles.add(createPluginJarFile("child1-plugin.jar", "child1_plugin_v1.xml"));
getPluginScannerService().scanAndRegister();
ResourceType resourceType = loadResourceTypeFully(TYPE_NAME_CHILD1, PLUGIN_NAME_CHILD1);
assert resourceType.getName().equals(TYPE_NAME_CHILD1);
assert resourceType.getPlugin().equals(PLUGIN_NAME_CHILD1);
assertVersion1(resourceType);
// in our child #1 plugin, our extended type is actually a child of child #1 plugin's root type
// here we want to make sure that hierarchy remains intact with our extended type - the parent
// of our extended type should be this child #1 root type
assert resourceType.getParentResourceTypes() != null;
assert resourceType.getParentResourceTypes().size() == 1;
assert resourceType.getParentResourceTypes().iterator().next().getName().equals("OuterServerA");
}