List<XmlDeploymentArtifact>[] artifacts = handler.getArtifacts();
assert artifacts.length == 1 : "Expected two artifacts to be found!";
assert artifacts[0].size() == 2 : "Expected two artifacts to be found!";
XmlDeploymentArtifact artifact1 = artifacts[0].get(0);
assert new URL("file:///bundle4.1").equals(artifact1.getUrl()) : "Expected 'file:///bundle4.1' URL to be found!";
assert artifact1.getDirective().size() == 2 : "Expected two directives to be found!";
assert "bundle4.1".equals(artifact1.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
assert "4.1.0".equals(artifact1.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";
XmlDeploymentArtifact artifact2 = artifacts[0].get(1);
assert new URL("file:///bundle5").equals(artifact2.getUrl()) : "Expected 'file:///bundle5' URL to be found!";
assert artifact2.getDirective().size() == 2 : "Expected two directives to be found!";
assert "bundle5".equals(artifact2.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
assert "5.0.0".equals(artifact2.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";
}