@Before
public void setUp() {
try {
testObjects = (HashMap<String, Object>) context.getBean("getCategoryTree");
CatalogCategoryEntityCreate parentCategory = (CatalogCategoryEntityCreate) testObjects.get("parentCategory");
CatalogCategoryEntityCreate childCategory = (CatalogCategoryEntityCreate) testObjects.get("childCategory");
int parentId = (Integer) testObjects.get("parentId");
int parentCategoryId = createCategory(parentId, parentCategory);
int childCategoryId = createCategory(parentCategoryId, childCategory);