### Question:
CompositeFixApplicationAdapter extends FixApplicationAdapter { @Override public void beforeSendMessage(ChannelHandlerContext ctx, FixMessageBuilder msg) { for (FixMessageHandler handler : handlers) { handler.beforeSendMessage(ctx, msg); } } CompositeFixApplicationAdapter(List<FixMessageValidator> validators, List<FixMessageHandler> handlers); @Override void onMessage(ChannelHandlerContext ctx, FixMessage msg, List<Object> out); @Override void beforeSendMessage(ChannelHandlerContext ctx, FixMessageBuilder msg);  }### Answer:
@Test public void testBeforeSendMessage() { final FixMessageBuilder message = new FixMessageBuilderImpl(); adapter.beforeSendMessage(ctx, message); InOrder inOrder = inOrder( messageValidator1, messageValidator2, messageHandler1, messageHandler2, messageHandler3, ctx); inOrder.verify(messageHandler1).beforeSendMessage(same(ctx), same(message)); inOrder.verify(messageHandler2).beforeSendMessage(same(ctx), same(message)); inOrder.verify(messageHandler3).beforeSendMessage(same(ctx), same(message)); }