async def METHOD_NAME(spawn_job_client, tmp_path):
    client = await spawn_job_client(authorize=True)
    get_config_from_app(client.app).data_path = tmp_path
    db = client.app["db"]
    await db.hmm.insert_one({"_id": "foo"})
    await db.hmm.insert_one({"_id": "bar"})
    compressed_hmm_annotations = tmp_path / "annotations.json.gz"
    decompressed_hmm_annotations = tmp_path / "annotations.json"
    async with client.get("/hmms/files/annotations.json.gz") as response:
        assert response.status == 200
        async with aiofiles.open(compressed_hmm_annotations, "wb") as f:
            await f.write(await response.read())
        decompress_file(compressed_hmm_annotations, decompressed_hmm_annotations)
        async with aiofiles.open(decompressed_hmm_annotations, "r") as f:
            hmms = json.loads(await f.read())
        assert hmms == [{"id": "foo"}, {"id": "bar"}]