ServiceRegistration registration = ctxt.registerService(IServiceListener.class.getName(), tsl, props);
// IServiceListener#triggerDiscovery should have triggered re-discovery
// register a service which we expect the test listener to get notified of
try {
tsl.wait(waitTimeForProvider);
} catch (final InterruptedException e) {
Thread.currentThread().interrupt();
fail("Some discovery unrelated threading issues?");
} finally {
registration.unregister();