def METHOD_NAME(tmp_trestle_dir: Path, monkeypatch: MonkeyPatch) -> None:
    """Test model load failures."""
    test_utils.ensure_trestle_config_dir(tmp_trestle_dir)
    args = argparse.Namespace(trestle_root=tmp_trestle_dir, name='foo', output='bar', verbose=0)
    monkeypatch.setattr('trestle.common.file_utils.extract_trestle_project_root', mock_return)
    with pytest.raises(err.TrestleError):
        ReplicateCmd.replicate_object('catalog', args)