}
@Test
@Transactional
public void testListChildrenMaterialCategories() {
MaterialCategory category = createValidMaterialCategory();
MaterialCategory subcategory = createValidMaterialCategory();
int previous = category.getSubcategories().size();
category.addSubcategory(subcategory);
materialCategoryDAO.save(category);
Set<MaterialCategory> childrenList = category.getSubcategories();
assertEquals(previous + 1, childrenList.size());