def test_validate_fail(self, is_file_mock):
        is_file_mock.return_value = True

        self.assertRaisesRegexp(
            SystemExit,
            'Error validating ' + os.path.join(get_catalog_directory(), 'example.properties') + '\n\n'
            'Underlying exception:\n    No such file or directory',
            catalog.add, 'example')