List<String> service2 = Arrays.asList("2", "3");
List<String> service2a = Arrays.asList("2", "3");
List<String> service3 = Arrays.asList("3", "4");
ClassLoader classLoader = ClassUtils.getDefaultClassLoader();
registry.addService("bean1", "module1", new StaticServiceBeanReference(service1), null, Collections.singletonMap("mapkey", "bean1"), classLoader);
registry.addService("bean2", "module1", new StaticServiceBeanReference(service2), null, Collections.singletonMap("mapkey", "bean2"), classLoader);
registry.addService("bean2a", "module1", new StaticServiceBeanReference(service2a), null, Collections.singletonMap("mapkey", "bean2a"), classLoader);
assertTrue(set.isEmpty());