public void testDeleteContentByPath() throws Exception {
    User user = getUser(userDao, "testuser");
    CollectionItem root = (CollectionItem) contentDao.getRootItem(user);

    ContentItem item = generateTestContent();

    ContentItem newItem = contentDao.createContent(root, item);

    clearSession();

    ContentItem queryItem = contentDao.findContentByUid(newItem.getUid());
    helper.verifyItem(newItem, queryItem);

    contentDao.removeItemByPath("/testuser/test");

    clearSession();

    queryItem = contentDao.findContentByUid(queryItem.getUid());
    Assert.assertNull(queryItem);
  }