### Question:
FIXIncomingMessageHandler implements Application { public void fromAdmin(Message message, SessionID sessionID) throws FieldNotFound, IncorrectDataFormat, IncorrectTagValue, RejectLogon { if (log.isDebugEnabled()) { StringBuffer sb = new StringBuffer(); sb.append("Received admin level FIX message from ").append(message.getHeader().getField(new SenderCompID()).getValue()); sb.append("\nMessage Type: ").append(message.getHeader().getField(new MsgType()).getValue()); sb.append("\nMessage Sequence Number: ").append(message.getHeader().getField(new MsgSeqNum()).getValue()); sb.append("\nReceiver ID: ").append(message.getHeader().getField(new TargetCompID()).getValue()); log.debug(sb.toString()); if (log.isTraceEnabled()) { log.trace("Message: " + message.toString()); } } if (eventHandler != null) { eventHandler.fromAdmin(this, message, sessionID); } } FIXIncomingMessageHandler(ConfigurationContext cfgCtx, WorkerPool workerPool,
                                     AxisService service, boolean acceptor); void setOutgoingMessageContext(MessageContext msgCtx); void acquire(); void onCreate(SessionID sessionID); void onLogon(SessionID sessionID); void onLogout(SessionID sessionID); void toAdmin(Message message, SessionID sessionID); void fromAdmin(Message message, SessionID sessionID); void toApp(Message message, SessionID sessionID); void fromApp(Message message, SessionID sessionID);  }### Answer:
@Test public void testFromAdmin() throws Exception { SessionID id = new SessionID(new BeginString("FIX.4.1"), new SenderCompID("SYNAPSE"), new TargetCompID("BANZAI"), "FIX.4.1:SYNAPSE->BANZAI"); Message message = new NewOrderSingle(); message.getHeader().setField(new BeginString("FIX.4.1")); message.getHeader().setField(new SenderCompID("SYNAPSE")); message.getHeader().setField(new TargetCompID("BANZAI")); message.getHeader().setField(new MsgSeqNum(1)); message.getHeader().setField(new MsgType("A")); ConfigurationContext cfgCtx = new ConfigurationContext(new AxisConfiguration()); WorkerPool pool = new NativeWorkerPool(3, 4, 10, 10, "name", "id"); FIXIncomingMessageHandler handler = new FIXIncomingMessageHandler(cfgCtx, pool, service, true); handler.fromAdmin(message, id); }