artifactType2.setCategory(PackageCategory.CONFIGURATION);
// Test
ScenarioManager manager = ScenarioManager.getInstance();
ContentFactory artifactFactory;
// Type: artifact1
artifactFactory = manager.getContentFactory("server-a", "artifact1");
assert artifactFactory != null : "Null artifact factory for artifact1";
Set<ResourcePackageDetails> artifacts = artifactFactory.discoverContent(artifactType1);
assert artifacts != null : "Null set of artifacts returned from factory for artifact1";
assert artifacts.size() == 5 : "Incorrect number of artifacts returned from factory for artifact1. Expected: 5, Found: "
+ artifacts.size();
ResourcePackageDetails packageDetails = artifacts.iterator().next();
// Type: artifact2
artifactFactory = manager.getContentFactory("server-a", "artifact2");
assert artifactFactory != null : "Null artifact factory for artifact2";
artifacts = artifactFactory.discoverContent(artifactType2);
assert artifacts != null : "Null set of artifacts returned from factory for artifact2";
assert artifacts.size() == 1 : "Incorrect number of artifacts returned from factory for artifact2. Expected: 1, Found: "
+ artifacts.size();