* Test method for
* {@link com.google.code.magja.service.category.CategoryRemoteServiceImpl#create(java.lang.Integer, java.util.ArrayList)}
*/
@Test
public void testCreate() throws Exception {
Category parent = service.getDefaultParent();
List<Category> categories = new ArrayList<Category>();
categories.add(service.getMinimalCategory(0, "Category 1"));
categories.add(service.getRequiredCategory(0, "Sub Category 2", new String[] {"name", "price"}, "name", true, true));
categories.add(service.getRequiredCategory(0, "Under Sub Category 3", new String[] {"name"}, "name", true, true));
Category category = service.linkCategory(categories);
service.create(parent.getId(), category);
}