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"));