builder.put(descriptor.getId(), descriptor);
}
Map<UUID, ServiceDescriptor> descriptorMap = builder.build();
for (ServiceAnnouncement serviceAnnouncement : serviceAnnouncements) {
ServiceDescriptor serviceDescriptor = descriptorMap.get(serviceAnnouncement.getId());
assertNotNull(serviceDescriptor, "No descriptor for announcement " + serviceAnnouncement.getId());
assertEquals(serviceDescriptor.getType(), serviceType.value());
assertEquals(serviceDescriptor.getPool(), "pool");
assertEquals(serviceDescriptor.getId(), serviceAnnouncement.getId());
assertEquals(serviceDescriptor.getProperties(), serviceAnnouncement.getProperties());
assertEquals(serviceDescriptor.getNodeId(), nodeInfo.getNodeId());
}
}