This post describes how to use the APIs provided in IBM Integration Bus Version 10.0 (IIB) to unit test a message flow by checking the logical tree at specified points in the flow.
The Flow Exerciser
You can use the Flow Exerciser in the IBM Integration Toolkit to enable message recording and then inspect the logical tree at any connection in a flow. The Flow Exerciser is described in the following Help topic Testing your message flow by using the Flow exerciser.