public class BusImplTests {
@Test
public void canSendToSpecificEntityId() {
BusImpl bus = new BusImpl();
UUID entityId = UUID.randomUUID();
Foo fooOne = new Foo(bus, entityId);
Foo fooTwo = new Foo(bus, UUID.randomUUID());
bus.register(fooOne, entityId);
bus.send("blah", entityId);
assertEquals("blah", fooOne.fooValue);
assertEquals(null, fooTwo.fooValue);
}