def test_validate(self, open_mock, is_file_mock):
        is_file_mock.return_value = True
        file_obj = open_mock.return_value.__enter__.return_value
        file_obj.read.return_value = 'connector.noname=example'

        self.assertRaisesRegexp(ConfigurationError,
                                'Catalog configuration example.properties '
                                'does not contain connector.name',
                                catalog.add, 'example')