assertEquals(1,result.size());
}
public void testAddSKOSRelatedTags2() throws Exception{
User user = new User(1);
UserTag subjectTag = new UserTag(1);
List<String> tags2add = new ArrayList<String>();
tags2add.add("tag:gnizr/abc");
tags2add.add("funstuff");
tags2add.add("tag:123_092");
boolean isOkay = manager.addSKOSRelatedTags(user, subjectTag,tags2add);
assertTrue(isOkay);
List<TagAssertion> result = manager.listTagAssertion(user);
assertEquals(7,result.size());
TagAssertionDao dao = getGnizrDao().getTagAssertionDao();
UserTag abcUserTag = manager.createUserTag(new User(2), "abc");
result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),abcUserTag);
assertEquals(1,result.size());
UserTag funstuffUserTag = manager.createUserTag(user, "funstuff");
result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),funstuffUserTag);
assertEquals(1,result.size());
UserTag tag123_092 = manager.createUserTag(user, "123_092");
result = dao.findTagAssertion(user,subjectTag,manager.getSkosRelatedProperty(),tag123_092);
assertEquals(1,result.size());
}