@Test
public void testDoProcessing() throws Exception {

    
	MessageContext mc = new MessageContext();
	mc.setFLOW(MessageContext.OUT_FLOW);
	IMessageProcessingContext procCtx = MessageProcessingContext.getFromMessageContext(mc);
    
	PMode pmode = TestUtils.create1WaySendPushPMode();        
    HolodeckB2BCore.getPModeSet().add(pmode);
	
	StorageManager storageManager = HolodeckB2BCore.getStorageManager();
    // Setting input message property
	UserMessage usrMessage = new UserMessage();
	usrMessage.setPModeId(pmode.getId());
    IUserMessageEntity userMessageEntity = storageManager.storeOutGoingMessageUnit(usrMessage);
    
    procCtx.setUserMessage(userMessageEntity);
    
    try {
        Handler.InvocationResponse invokeResp = new CheckSentResult().invoke(mc);
        assertEquals(Handler.InvocationResponse.CONTINUE, invokeResp);
    } catch (Exception e) {
        fail(e.getMessage());
    }
    assertEquals(ProcessingState.SENDING, userMessageEntity.getCurrentProcessingState().getState());
}