def METHOD_NAME(self):
    package_path_mock = MagicMock(name="package_path_mock")
    config_loc_mock = MagicMock(name="config_loc_mock")
    config_loc_mock.is_file.return_value = True
    config_loc_mock.open = mock_open(read_data=json.dumps(self._config))
    package_path_mock.__truediv__.return_value = config_loc_mock
    hook_config = HookPackageConfig(package_path_mock)
    self.assertEqual(hook_config.name, self._config["hook_name"])
    self.assertEqual(hook_config.use_case, self._config["hook_use_case"])
    self.assertEqual(hook_config.version, self._config["version"])
    self.assertEqual(hook_config.specification, self._config["hook_specification"])
    self.assertEqual(hook_config.description, self._config["description"])
    self.assertIn("prepare", hook_config.functionalities)
    self.assertIsInstance(hook_config.functionalities["prepare"], HookFunctionality)