.set(Constants.BUNDLE_ACTIVATOR, Activator.class.getName())
.set(Constants.DYNAMICIMPORT_PACKAGE, "*")
.build()),
frameworkProperty("org.osgi.service.http.port").value(String.valueOf(httpPort))));
NativeTestContainer container = new NativeTestContainer(system, new FrameworkFactory());
container.start();
try {
OMFactory factory = OMAbstractFactory.getOMFactory();
OMElement payload = factory.createOMElement("getVersion", factory.createOMNamespace("http://service.osgi.axis2.apache.org", "ns"));
Options options = new Options();
options.setTo(new EndpointReference("http://localhost:" + httpPort + "/services/Version"));