public void testException() {
ServiceReference ref = helper.getServiceReferenceByName(FooService.class.getName(), ci_lazzy.getInstanceName());
assertNotNull("Check that a FooService from " + ci_lazzy.getInstanceName() + " is available",ref);
FooProviderType1 fs = (FooProviderType1) getServiceObject(ref);
try {
fs.testException();
fail("The method must returns an exception");
} catch(Exception e) {
// OK
}
}