public function testDeleteSection()
{
$sectionService = $this->repository->getSectionService();
$sectionCreateStruct = $sectionService->newSectionCreateStruct();
$sectionCreateStruct->identifier = 'test';
$sectionCreateStruct->name = 'Test';
$newSection = $sectionService->createSection($sectionCreateStruct);
$sectionService->deleteSection($newSection);
try {
$sectionService->loadSection($newSection->id);
self::fail('Section is still returned after being deleted');
} catch (NotFoundException $e) {
// Do nothing
}
}