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();
CatalogCategoryEntity child = children[0]; // We only created 1 child.
assertTrue(child.getCategory_id() == childCategoryId);
assertTrue(child.getParent_id() == parentCategoryId);
}