tagService = injector.getInstance(TagService.class);
}
@Test
public void testCreateOrUpdate() throws Exception {
Tag tag = new Tag();
tag.setName("Java");
assertNull(tag.getId());
String tagId = tagService.saveOrUpdate(tag).getId();
assertNotNull(tagId);
Tag savedTag = tagService.get(tagId);
assertEquals("Java", savedTag.getName());
}