throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_rightsFilePath,undef);}qr/xsd name not defined/,"validateRightsXML(\$rightsFilePath, \$xsdName), xsdName undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::validateRightsXML($input_metaPath."/mods.xml",$xsdName);}qr/failed validation/,"validateRightsXML(\$rightsFilePath, \$xsdName), rights.xml is not valid according to $xsdName";
throws_ok{SLUB::LZA::SIPBuilderBagIt::create_slub_bagit($bag_output_path,undef);}qr/array of hashes not defined for bag-info.txt/,"create_slub_bagit(\$bagPath, \$refAddBagInfo), refAddBagInfo undef";
throws_ok{SLUB::LZA::SIPBuilderBagIt::create_slub_bagit("",\@addBagInfo);}qr/path is not directory/,"create_slub_bagit(\$bagPath, \$refAddBagInfo), bagPath is not a directory";