private Category createCategory(Integer categoryId) { Category category = new Category(); category.setCategoryId(new Long(categoryId)); return category; }