public void testRegisterServiceWithoutHostKey() throws ContainerConnectException {
final DnsSdDiscoveryAdvertiser advertiser = new DnsSdDiscoveryAdvertiser();
advertiser.connect(null, null);
try {
advertiser.registerService(serviceInfo);
} catch(ECFRuntimeException e) {
advertiser.disconnect();
return;
}
fail("Register should have failed without a host key given.");