/**
* Mallory cannot un-advertise ServiceLocator!
*/
public void tryToUnAdvertiseAService() {
final Descriptor locatorService = locator.getBestDescriptor(BuilderHelper.createContractFilter(ServiceLocator.class.getName()));
// This filter matches ServiceLocator itself!
Filter unbindFilter = new Filter() {
@Override
public boolean matches(Descriptor d) {
if (d.getServiceId().equals(locatorService.getServiceId())) {
if (d.getLocatorId().equals(locator.getLocatorId())) {
return true;
}
}