try {
int parentCategoryId = (Integer) testObjects.get("parentCategoryId");
int childCategoryId = (Integer) testObjects.get("childCategoryId");
MessageProcessor flow = lookupFlowConstruct("get-category-tree");
MuleEvent response = flow.process(getTestEvent(testObjects));
CatalogCategoryTree tree = (CatalogCategoryTree) response.getMessage().getPayload();
assertTrue(tree.getCategory_id() == parentCategoryId);
CatalogCategoryEntity[] children = tree.getChildren();