MessageHandler handler = createMessageHandler(outHandler, inHandler);
Assert.assertTrue(handler.supportsDirection(Direction.TO_CONNECTIONS));
Assert.assertTrue(handler.supportsDirection(Direction.TO_APPLICATIONS));
Assert.assertFalse(handler.supportsDirection(Direction.UNKNOWN));
Assert.assertFalse(handler.supportsDirection(null));
}
@Test(expectedExceptions=IllegalArgumentException.class)
public void shouldFailSetNullOutboundHandler() throws Exception {
OutboundInboundHandler handler = new OutboundInboundHandler();