blueprint.append("</reference>");
}
}
blueprint.append("</blueprint>");
Fixture jar = ArchiveFixture.newJar()
.manifest().symbolicName("sample"+no)
.attribute("Import-Package", "org.osgi.framework")
.end()
.binary("org/apache/aries/blueprint/itests/comp/Listener.class",
getClass().getClassLoader().getResourceAsStream(
"org/apache/aries/blueprint/itests/comp/Listener.class"))
.binary("org/apache/aries/blueprint/itests/comp/ListFactory.class",
getClass().getClassLoader().getResourceAsStream(
"org/apache/aries/blueprint/itests/comp/ListFactory.class"))
.file("OSGI-INF/blueprint/blueprint.xml", blueprint.toString())
.end();
ByteArrayOutputStream bout = new ByteArrayOutputStream();
jar.writeOut(bout);
return new ByteArrayInputStream(bout.toByteArray());
}