def METHOD_NAME(
    self, mock_rename, mock_tar, mock_compress, mock_checksum
):
    tar = Mock()
    mock_tar.return_value = tar
    compress = Mock()
    mock_compress.return_value = compress
    compress.xz.return_value = 'compressed-file-name'
    checksum = Mock()
    mock_checksum.return_value = checksum
    self.boot_image_task.required = Mock(
        return_value=True
    )
    m_open = mock_open()
    with patch('builtins.open', m_open, create=True):
        self.kis.create()
    m_open.assert_called_once_with(
        'target_dir/some-image.x86_64-1.2.3.append', 'w'
    )
    m_open.return_value.write.assert_called_once_with(
        'root=UUID=some_uuid console=hvc0'
    )
    self.filesystem.create.assert_called_once_with()
    mock_rename.assert_called_once_with(
        'myimage.fs', 'myimage'
    )
    compress.xz.assert_called_once_with(None)
    checksum.md5.assert_called_once_with(
        'target_dir/some-image.x86_64-1.2.3.md5'
    )
    self.boot_image_task.prepare.assert_called_once_with()
    self.setup.export_modprobe_setup.assert_called_once_with(
        'initrd_dir'
    )
    self.boot_image_task.create_initrd.assert_called_once_with()
    self.setup.export_package_list.assert_called_once_with(
        'target_dir'
    )
    self.setup.export_package_verification.assert_called_once_with(
        'target_dir'
    )
    tar.create.assert_called_once_with('target_dir')
    self.kis.compressed = False
    m_open = mock_open()
    with patch('builtins.open', m_open, create=True):
        self.kis.create()
    m_open.return_value.write.assert_called_once_with(
        'root=UUID=some_uuid console=hvc0'
    )
    tar.create_xz_compressed.assert_called_once_with(
        'target_dir', xz_options=['--threads=0']
    )