Transaction tx = session.beginTransaction();
Tag tag = createTag("to-be-deleted-parent", "desc1", null);
Tag tag2 = createTag("to-be-deleted-child", "desc2", tag);
TagMembership tagMem = new TagMembership();
tagMem.setTag(tag);
PermissibleObject obj = new PermissibleObject();
obj.setName("tags for this should not exist");
session.save(obj);
tagMem.setPermissibleObject(obj);
session.save(tagMem);
session.save(tag);
session.save(tag2);
tx.commit();