* @author <a href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
*/
public class ConfigUtilTest extends TestCase {
public void test_esbToJBPM_Mapping() throws IOException, SAXException, ConfigurationException {
ESBConfigUtil configUtil = new ESBConfigUtil(getClass().getResourceAsStream("mappingconfig-01.xml"));
ConfigTree actionConfig = configUtil.getActionConfig("InVM-0", "action1");
List<Mapping> mappingConfig = ConfigUtil.getMappingConfig(actionConfig);
assertEquals("[Mapping[ esb=eVar1, bpm=counter, isProcessScope=null, defaultValue=null ], Mapping[ esb=BODY_CONTENT, bpm=theBody, isProcessScope=null, defaultValue=null ]]", mappingConfig.toString());
}