def METHOD_NAME(monkeypatch, expect_report, installed_rpms_msg, current_kernel_pkg_index):
    uname_r = ''  # Kernel release is not used to determine the kernel novelty
    kernel_info = KernelInfo(pkg=installed_rpms_msg.items[current_kernel_pkg_index], uname_r=uname_r)
    msgs = [installed_rpms_msg, kernel_info]
    monkeypatch.setattr(api, 'current_actor', CurrentActorMocked(msgs=msgs))
    monkeypatch.setattr(reporting, 'create_report', create_report_mocked())
    checkinstalledkernels.process()
    if expect_report:
        assert reporting.create_report.called
        assert reporting.create_report.report_fields['title'] == 'Newest installed kernel not in use'
    else:
        assert not reporting.create_report.called