@Test
public void testWriteFeature() throws XMLStreamException, UnsupportedEncodingException {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
FeatureMetaDataExporter featureMetaDataExporter = new FeatureMetaDataExporter(baos);
BundleRef bundle = new BundleRef("mvn:org.apache.example/example/1.0.0", 10);
Artifact bundleArtifact = new DefaultArtifact("org.apache.example", "example", "1.0.0",
null, "jar", null,
new DefaultArtifactHandler());
bundle.setArtifact(bundleArtifact);
ArtifactRef configFile = new ArtifactRef("mvn:org.apache.example/example/1.0.0/cfg");
Artifact configFileArtifact = new DefaultArtifact("org.apache.example", "example", "1.0.0",
null, "xml", "exampleconfig",
new DefaultArtifactHandler());