@Test
  @Transactional
  public void testExportImportLayoutSetPrototypeInvalidLARType() throws Exception {

    // Import LayoutSetPrototype to LayoutSet

    LayoutSetPrototype layoutSetPrototype =
        LayoutTestUtil.addLayoutSetPrototype(ServiceTestUtil.randomString());

    group = layoutSetPrototype.getGroup();
    importedGroup = GroupTestUtil.addGroup();

    long[] layoutIds = new long[0];

    try {
      exportImportLayouts(layoutIds, getImportParameterMap());

      Assert.fail();
    } catch (LARTypeException lte) {
    }

    // Import LayoutSetPrototype to LayoutPrototyope

    LayoutPrototype layoutPrototype =
        LayoutTestUtil.addLayoutPrototype(ServiceTestUtil.randomString());

    importedGroup = layoutPrototype.getGroup();

    try {
      exportImportLayouts(layoutIds, getImportParameterMap());

      Assert.fail();
    } catch (LARTypeException lte) {
    }
  }
  @Before
  public void setUp() throws Exception {

    // Create site template

    FinderCacheUtil.clearCache();

    LayoutSetPrototype layoutSetPrototype =
        LayoutTestUtil.addLayoutSetPrototype(ServiceTestUtil.randomString());

    _layoutSetPrototypeGroup = layoutSetPrototype.getGroup();

    _layoutSetPrototypeLayout =
        LayoutTestUtil.addLayout(
            _layoutSetPrototypeGroup.getGroupId(), ServiceTestUtil.randomString(), true);

    updateLayoutTemplateId(_layoutSetPrototypeLayout, "1_column");

    _layoutSetPrototypeJournalArticle =
        addJournalArticle(_layoutSetPrototypeGroup.getGroupId(), 0, "Test Article", "Test Content");

    _layoutSetPrototypeJournalContentPortletId =
        addJournalContentPortletToLayout(
            TestPropsValues.getUserId(),
            _layoutSetPrototypeLayout,
            _layoutSetPrototypeJournalArticle,
            "column-1");

    // Create site from site template

    _group = GroupTestUtil.addGroup();

    SitesUtil.updateLayoutSetPrototypesLinks(
        _group, layoutSetPrototype.getLayoutSetPrototypeId(), 0, true, true);

    propagateChanges(_group);
  }