// public static void main(String[] args) {
@Test
public void test() throws Exception {
Injector injector = Guice.createInjector(new Module());
FluentApp myApp = injector.getInstance(FluentApp.class);
Sender sender = injector.getInstance(Sender.class);
Receiver receiver = injector.getInstance(Receiver.class);
myApp.setCommLayer(sender, receiver);
/* Normally. the container will handle this but this is just a test. */
myApp.init();
myApp.start();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
myApp.close();
}