String language = System.getProperty("pax.exam.language");
String expected = (language.equals("en")) ? "Hello Pax!" : "Pax Vobiscum!";
assertThat(bundleContext, is(notNullValue()));
Map<String, String> props = new HashMap<String, String>();
props.put("language", language);
HelloService service = ServiceLookup.getService(bundleContext, HelloService.class, props);
assertThat(service, is(notNullValue()));
assertThat(service.getMessage(), is(expected));
}