@Override
  protected void initExport() throws Exception {
    super.initExport();

    ServiceContext serviceContext = ServiceContextTestUtil.getServiceContext();

    serviceContext.setAttribute("exportLAR", Boolean.TRUE);

    ServiceContextThreadLocal.pushServiceContext(serviceContext);
  }
  @Override
  protected void validateImportedStagedModel(
      StagedModel stagedModel, StagedModel importedStagedModel) throws Exception {

    super.validateImportedStagedModel(stagedModel, importedStagedModel);

    AssetTag tag = (AssetTag) stagedModel;
    AssetTag importedTag = (AssetTag) importedStagedModel;

    Assert.assertEquals(tag.getName(), importedTag.getName());
  }
  @Override
  protected void validateImportedStagedModel(
      StagedModel stagedModel, StagedModel importedStagedModel) throws Exception {

    super.validateImportedStagedModel(stagedModel, importedStagedModel);

    AssetCategory category = (AssetCategory) stagedModel;
    AssetCategory importedCategory = (AssetCategory) importedStagedModel;

    Assert.assertEquals(category.getName(), importedCategory.getName());
    Assert.assertEquals(category.getTitle(), importedCategory.getTitle());
    Assert.assertEquals(category.getDescription(), importedCategory.getDescription());
  }
  @Override
  protected void validateImportedStagedModel(
      StagedModel stagedModel, StagedModel importedStagedModel) throws Exception {

    super.validateImportedStagedModel(stagedModel, importedStagedModel);

    LayoutSetPrototype layoutSetPrototype = (LayoutSetPrototype) stagedModel;
    LayoutSetPrototype importedLayoutSetPrototype = (LayoutSetPrototype) importedStagedModel;

    Assert.assertEquals(layoutSetPrototype.getName(), importedLayoutSetPrototype.getName());
    Assert.assertEquals(
        layoutSetPrototype.getDescription(), importedLayoutSetPrototype.getDescription());
    Assert.assertEquals(layoutSetPrototype.isActive(), importedLayoutSetPrototype.isActive());
  }
  @Override
  protected void validateImportedStagedModel(
      StagedModel stagedModel, StagedModel importedStagedModel) throws Exception {

    super.validateImportedStagedModel(stagedModel, importedStagedModel);

    DDLRecordSet recordSet = (DDLRecordSet) stagedModel;
    DDLRecordSet importedRecordSet = (DDLRecordSet) importedStagedModel;

    Assert.assertEquals(recordSet.getRecordSetKey(), importedRecordSet.getRecordSetKey());
    Assert.assertEquals(recordSet.getName(), importedRecordSet.getName());
    Assert.assertEquals(recordSet.getDescription(), importedRecordSet.getDescription());
    Assert.assertEquals(recordSet.getMinDisplayRows(), importedRecordSet.getMinDisplayRows());
    Assert.assertEquals(recordSet.getScope(), importedRecordSet.getScope());
    Assert.assertEquals(recordSet.getSettings(), importedRecordSet.getSettings());
  }
  @Override
  protected void validateImportedStagedModel(
      StagedModel stagedModel, StagedModel importedStagedModel) throws Exception {

    super.validateImportedStagedModel(stagedModel, importedStagedModel);

    MBCategory category = (MBCategory) stagedModel;
    MBCategory importedCategory = (MBCategory) importedStagedModel;

    Assert.assertEquals(category.getName(), importedCategory.getName());
    Assert.assertEquals(category.getDescription(), importedCategory.getDescription());
    Assert.assertEquals(category.getDisplayStyle(), importedCategory.getDisplayStyle());
    Assert.assertEquals(category.getThreadCount(), importedCategory.getThreadCount());
    Assert.assertEquals(category.getMessageCount(), importedCategory.getMessageCount());
    Assert.assertEquals(category.getLastPostDate(), importedCategory.getLastPostDate());
  }
  @After
  @Override
  public void tearDown() throws Exception {
    super.tearDown();

    if (_layoutSetPrototype != null) {
      _layoutSetPrototype =
          LayoutSetPrototypeLocalServiceUtil.fetchLayoutSetPrototypeByUuidAndCompanyId(
              _layoutSetPrototype.getUuid(), _layoutSetPrototype.getCompanyId());

      LayoutSetPrototypeLocalServiceUtil.deleteLayoutSetPrototype(_layoutSetPrototype);
    }

    if (_layoutPrototype != null) {
      _layoutPrototype =
          LayoutPrototypeLocalServiceUtil.fetchLayoutPrototypeByUuidAndCompanyId(
              _layoutPrototype.getUuid(), _layoutPrototype.getCompanyId());

      LayoutPrototypeLocalServiceUtil.deleteLayoutPrototype(_layoutPrototype);
    }
  }