public function testImportContent()
 {
     $label = 'item_for_test';
     $itemService = \taoItems_models_classes_ItemsService::singleton();
     $itemClass = $itemService->getRootClass();
     $item = $itemService->createInstance($itemClass, $label);
     $item->setPropertyValue(new \core_kernel_classes_Property(TAO_ITEM_MODEL_PROPERTY), TAO_ITEM_MODEL_XHTML);
     //validate malformed html
     $report = $this->importService->importContent($this->dataFolder . 'complete.zip', $item);
     $this->assertEquals(\common_report_Report::TYPE_SUCCESS, $report->getType());
     $content = $itemService->getItemDirectory($item)->getFile('index.html')->read();
     $this->assertFalse(empty($content));
     $report = $this->importService->importContent($this->dataFolder . 'invalid.zip', $itemClass, true);
     $this->assertNotEquals(\common_report_Report::TYPE_SUCCESS, $report->getType());
     $this->assertTrue($itemService->deleteItem($item));
 }