MuleEvent response = flow.process(getTestEvent(testObjects));
List<CatalogCategoryEntityNoChildren> categories = (List<CatalogCategoryEntityNoChildren>) response.getMessage().getPayload();
assertTrue(categories.size() == 1); // Only the default category should be there
CatalogCategoryEntityNoChildren category = categories.get(0);
assertTrue(category.getCategory_id() == DEFAULT_CATEGORY_ID); // The default category
}
catch (Exception e) {
e.printStackTrace();
fail();
}