* See https://ops4j1.jira.com/browse/PAXEXAM-572
*/
@Test
public void testEncoding() {
WrappedUrlProvisionOption option = wrappedBundle(mavenBundle("mygroup", "myArtifactId", "1.0"));
option.instructions("Export-Package=my.package.*");
option.overwriteManifest(OverwriteMode.MERGE);
StringWriter wr = new StringWriter();
DependenciesDeployer.writeDependenciesFeature(wr, option);
Assert.assertThat(wr.toString(), StringContains.containsString("<bundle>wrap:mvn:mygroup/myArtifactId/1.0$overwrite=MERGE&Export-Package=my.package.*</bundle>"));
}