def METHOD_NAME(
    self, mock_write_kernel_cmdline_file,
    mock_get_template_parameters, mock_write_config_file,
    mock_BootLoaderTemplateSystemdBoot, mock_Command_run,
    mock_Path_wipe, mock_BootImageBase_get_boot_names,
    mock_os_path_exists
):
    kernel_info = Mock()
    kernel_info.kernel_version = 'kernel-version'
    kernel_info.kernel_filename = 'kernel-filename'
    kernel_info.initrd_name = 'initrd-name'
    mock_os_path_exists.return_value = True
    mock_BootImageBase_get_boot_names.return_value = kernel_info
    self.bootloader.setup_loader('disk')
    mock_write_config_file.assert_called_once_with(
        mock_BootLoaderTemplateSystemdBoot.return_value.get_loader_template.return_value,
        'system_root_mount/boot/efi/loader/loader.conf',
        mock_get_template_parameters.return_value
    )
    assert self.bootloader._mount_system.called
    mock_write_kernel_cmdline_file.assert_called_once_with()
    assert mock_Command_run.call_args_list == [
        call(
            [
                'chroot', 'system_root_mount', 'bootctl', 'install',
                '--esp-path=/boot/efi',
                '--no-variables',
                '--entry-token', 'os-id'
            ]
        ),
        call(
            [
                'chroot', 'system_root_mount', 'kernel-install', 'add',
                'kernel-version', 'kernel-filename',
                '/boot/initrd-name'
            ]
        )
    ]