def METHOD_NAME(self, mocked_run):
    base_path_without_extension = "corpus"
    archive_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "resources", "test.txt.bz2")
    tmp_dir = tempfile.mkdtemp()
    decompressor_bin = "pbzip2"
    decompress_cmd = f"{decompressor_bin} -d -k -m10000 -c ${archive_path}"
    stderr_msg = "Error details here"
    expected_err = "Failed to decompress [%s] with [%s]. Error [%s]. Falling back to standard library."
    mocked_run.side_effect = subprocess.CalledProcessError(cmd=decompress_cmd, returncode=1, stderr=stderr_msg)
    logger = logging.getLogger("esrally.utils.io")
    with mock.patch.object(logger, "warning") as mocked_warn_logger:
        result = io._do_decompress_manually_external(tmp_dir, archive_path, base_path_without_extension, [decompressor_bin])
    mocked_warn_logger.assert_called_once_with(expected_err, archive_path, decompress_cmd, stderr_msg)
    assert result is False