}
@Test
public void canRegisterAndDeregisterComponentsWithBus() {
Bus bus = new BusImpl();
UUID entityId = UUID.randomUUID();
Foo fooOne = new Foo(bus, entityId);
bus.register(fooOne, entityId);
bus.send("blah", entityId);
assertEquals("blah", fooOne.fooValue);
fooOne.fooValue = null;
bus.deregister(fooOne, entityId);
assertEquals(null, fooOne.fooValue);
}