@@ -0,0 +1,854 @@
+package devopsdistilled.operp.server.data.service;%0A%0Aimport static org.junit.Assert.assertNotNull;%0A%0Aimport javax.inject.Inject;%0A%0Aimport org.junit.Before;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.test.context.ContextConfiguration;%0Aimport org.springframework.test.context.junit4.SpringJUnit4ClassRunner;%0A%0Aimport devopsdistilled.operp.server.context.AppContext;%0Aimport devopsdistilled.operp.server.data.entity.items.Category;%0Aimport devopsdistilled.operp.server.data.service.items.CategoryService;%0A%0A@RunWith(SpringJUnit4ClassRunner.class)%0A@ContextConfiguration(classes = %7B AppContext.class %7D)%0Apublic class CategoryServiceTest %7B%0A%0A%09@Inject%0A%09private CategoryService categoryService;%0A%0A%09private Category category;%0A%0A%09@Before%0A%09public void setUp() %7B%0A%09%09category = new Category();%0A%0A%09%09assertNotNull(category);%0A%09%09assertNotNull(categoryService);%0A%09%7D%0A%0A%7D%0A

Add @Test for isNameValidForCategory()