SOAPMessageRoutingAccessor implements MessageRoutingAccessor { @SuppressWarnings("unchecked") @Override public List<String> getResponseMsgIdList() { MessageContext mContext = context.getMessageContext(); if (mContext == null) { return null; } return (List<String>) mContext.get(NhincConstants.RESPONSE_MESSAGE_ID_LIST_KEY); } SOAPMessageRoutingAccessor();   SOAPMessageRoutingAccessor(WebServiceContext context, AsyncMessageIdExtractor extractor,
            TransactionStoreFactory transactionStoreFactory); @Override String getMessageId(); @Override String getTransactionId(); @SuppressWarnings("unchecked") @Override List<String> getResponseMsgIdList();  }
@Test public void nullMessageContext() { WebServiceContext context = mock(WebServiceContext.class); AsyncMessageIdExtractor extractor = mock(AsyncMessageIdExtractor.class); TransactionStoreFactory factory = mock(TransactionStoreFactory.class); SOAPMessageRoutingAccessor accessor = new SOAPMessageRoutingAccessor(context, extractor, factory); List<String> msgIdList = accessor.getResponseMsgIdList(); assertNull(msgIdList); }