StampyHeartbeatContainer heartbeatContainer = new HeartbeatContainer();
ServerMinaMessageGateway gateway = new ServerMinaMessageGateway();
gateway.setPort(1234);
RawServerMinaHandler handler = new RawServerMinaHandler();
handler.setHeartbeatContainer(heartbeatContainer);
handler.setGateway(gateway);
gateway.addMessageListener(new IDontNeedSecurity());
MinaReceiptListener receipt = new MinaReceiptListener();
receipt.setGateway(gateway);