@Test(expected = NoSuchFolderException.class)
  public void testMoveKBFolderToParentKBArticle() throws Exception {
    KBFolder kbFolder = addKBFolder(_kbFolder.getKbFolderId());
    KBArticle kbArticle = addKBArticle(_kbFolder.getKbFolderId(), RandomTestUtil.randomString());

    KBFolderLocalServiceUtil.moveKBFolder(kbFolder.getKbFolderId(), kbArticle.getResourcePrimKey());
  }
  @Test(expected = KBFolderParentException.class)
  public void testMoveKBArticleToInvalidParentKBFolder() throws Exception {
    KBFolder kbFolder = addKBFolder(_kbFolder.getKbFolderId());

    KBFolder kbSubfolder = addKBFolder(kbFolder.getKbFolderId());

    KBFolderLocalServiceUtil.moveKBFolder(kbFolder.getKbFolderId(), kbSubfolder.getKbFolderId());
  }
  @Test
  public void testMoveKBFolderToParentKBFolderInKBFolder() throws Exception {
    KBFolder kbFolder = addKBFolder(_kbFolder.getKbFolderId());
    KBFolder parentKBFolder = addKBFolder(_kbFolder.getKbFolderId());

    KBFolderLocalServiceUtil.moveKBFolder(kbFolder.getKbFolderId(), parentKBFolder.getKbFolderId());

    kbFolder = KBFolderLocalServiceUtil.getKBFolder(kbFolder.getKbFolderId());

    Assert.assertEquals(parentKBFolder.getKbFolderId(), kbFolder.getParentKBFolderId());
  }
  @Test
  public void testMoveKBFolderToParentKBFolderInHomeKBFolder() throws Exception {

    KBFolder kbFolder = addKBFolder(KBFolderConstants.DEFAULT_PARENT_FOLDER_ID);
    KBFolder parentKBFolder = addKBFolder(KBFolderConstants.DEFAULT_PARENT_FOLDER_ID);

    KBFolderLocalServiceUtil.moveKBFolder(kbFolder.getKbFolderId(), parentKBFolder.getKbFolderId());

    kbFolder = KBFolderLocalServiceUtil.getKBFolder(kbFolder.getKbFolderId());

    Assert.assertEquals(parentKBFolder.getKbFolderId(), kbFolder.getParentKBFolderId());
  }