def METHOD_NAME(
    mocker: MockerFixture, replicate_obj: replicate.Replicate
):
    """
    Test that asserts that the replace_objects_newer_on_remote subroutine works as expected.
    """
    # Arrange
    replicate_obj.local_data["distro"] = []
    replicate_obj.remote_data["distro"] = []
    replicate_obj.must_include["distro"] = ["test"]  # type: ignore
    mocker.patch(
        "cobbler.utils.lod_to_dod",
        side_effect=[
            {"fake_uid": {"uid": "fake_uid", "name": "test", "mtime": 4}},
            {"fake_uid": {"uid": "fake_uid", "name": "test", "mtime": 5}},
        ],
    )
    api_mock = mocker.patch.object(replicate_obj, "api")
    # Act
    replicate_obj.replace_objects_newer_on_remote("distro")
    # Assert
    api_mock.new_distro.assert_called_once()  # type: ignore
    api_mock.add_item.assert_called_once()  # type: ignore