ConfigurationPoint cp1 = cps.getConfigurationPointByName("my/services");
resource = assertSourceInfoAndGetResource(cp1, ConfigurationPointSourceInfo.class, null);
assertResource("TEST-INF/test12/cps", resource);
// configuration point schema
Schema cp1Schema = cp1.getSchemas().getMainSchema();
resource = assertSourceInfoAndGetResource(cp1Schema, ConfigurationPointSchemaSourceInfo.class, cp1);
assertResource(null, resource);
Schema cp1Schema2 = cp1.getSchemas().getVersionedSchema("2.0");
resource = assertSourceInfoAndGetResource(cp1Schema2, ConfigurationPointSchemaSourceInfo.class, cp1);
assertResource(null, resource);
// contribution
Contribution contrib1 = cp1.getContribution("myservice", ContributionType.BEAN_DEFINITION_PARSER);
resource = assertSourceInfoAndGetResource(contrib1, ContributionSourceInfo.class, cp1);
assertResource("TEST-INF/test12/my-services.bean-definition-parsers", resource);
Contribution contrib2 = cp1.getContribution("myservice-abc-xyz", ContributionType.BEAN_DEFINITION_DECORATOR);
resource = assertSourceInfoAndGetResource(contrib2, ContributionSourceInfo.class, cp1);
assertResource("TEST-INF/test12/my-services.bean-definition-decorators", resource);
// contribution schema
Schema contrib1Schema = contrib1.getSchemas().getMainSchema();
resource = assertSourceInfoAndGetResource(contrib1Schema, ContributionSchemaSourceInfo.class, contrib1);
assertResource("TEST-INF/test12/my/services/myservice.xsd", resource);
Schema contrib1Schema2 = contrib2.getSchemas().getVersionedSchema("2.0");
resource = assertSourceInfoAndGetResource(contrib1Schema2, ContributionSchemaSourceInfo.class, contrib2);
assertResource("TEST-INF/test12/my/services/myservice-abc-xyz-2.0.xsd", resource);
}