@Test
public void testSingleMessage() throws Exception {
Injector injector1 = Guice.createInjector(Modules.override(
new TestCommModule(Resources.getResource("default.s4.comm.properties").openStream())).with(
new UDPTransportModule(), new NoOpReceiverModule()));
// this picks partition 0
Emitter emitter = injector1.getInstance(Emitter.class);
Injector injector2 = Guice.createInjector(Modules.override(
new TestCommModule(Resources.getResource("default.s4.comm.properties").openStream())).with(
new UDPTransportModule(), new MockReceiverModule()));
// creating the listener will inject assignment (i.e. assign a partition) and receiver (delegatee for
// listener)
injector2.getInstance(Listener.class);