def METHOD_NAME(self, patches):
    patches.mock_open.side_effect = [
        mock.mock_open(read_data=self.mock_manifest).return_value
    ]
    handler = "dummy_func_model_service:infer"
    service = self.model_loader.load(
        self.model_name, self.model_dir, handler, envelope="json"
    )
    assert isinstance(service._entry_point.__self__, JSONEnvelope)
    assert service._entry_point.__name__ == "handle"