private void protocolStackTest() throws Exception {
logger.info("programmatically create a channel start");
JChannel channel = new JChannel(false);
ProtocolStack stack = new ProtocolStack();
channel.setProtocolStack(stack);
stack.addProtocols(new UDP().setValue("bind_addr", InetAddress.getByName("192.168.1.108")))
.addProtocol(new PING())
.addProtocol(new MERGE2())
.addProtocol(new FD_SOCK())
.addProtocol(new FD_ALL().setValue("timeout", 12000).setValue("interval", 3000))
.addProtocol(new VERIFY_SUSPECT()).addProtocol(new BARRIER())
.addProtocol(new NAKACK()).addProtocol(new UNICAST2())
.addProtocol(new STABLE()).addProtocol(new GMS())
.addProtocol(new UFC()).addProtocol(new MFC())
.addProtocol(new FRAG2());
stack.init();
}