public void testMessageSentIsCalled_With_SSL() throws Exception {
testMessageSentIsCalled(true);
}
private void testMessageSentIsCalled(boolean useSSL) throws Exception {
SSLFilter sslFilter = null;
if (useSSL) {
sslFilter = new SSLFilter(BogusSSLContextFactory.getInstance(true));
acceptor.getFilterChain().addLast("sslFilter", sslFilter);
}
acceptor.getFilterChain().addLast(
"codec",
new ProtocolCodecFilter(new TextLineCodecFactory(Charset