KernelRegistry registry = kernel.getRegistry();
KernelConfig config = kernel.getConfig();
registry.registerEntry("Name1", makeEntry("A string"));
registry.registerEntry("Name2", makeEntry("B string"));
KernelBus bus = kernel.getBus();
TargettedJoinpoint joinPoint = getMethodJoinpoint(config, String.class, "toString");
Object result1 = bus.invoke("Name1", joinPoint);
Object result2 = bus.invoke("Name2", joinPoint);
assertEquals("A string", result1);
assertEquals("B string", result2);
}