configuration.put("id", id);
ProfilingGenerator profilingGenerator = new ProfilingGenerator();
profilingGenerator.setProfilingDataHolder(holder);
Pipeline pipeline = new NonCachingPipeline();
profilingGenerator.setConfiguration(configuration);
pipeline.addComponent(profilingGenerator);
pipeline.addComponent(new XMLSerializer());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
pipeline.setup(baos, configuration);
pipeline.execute();
String s = baos.toString();
assertTrue(s.contains("<cocoon-profiling id=\"42\">"));
assertTrue(s.contains("<component"));