def METHOD_NAME(
    self, batch_indexer, factories, get_indexed_ann
):
    annotations = factories.Annotation.create_batch(5)
    ids = [a.id for a in annotations]
    ids_to_index = ids[:3]
    ids_not_to_index = ids[3:]
    batch_indexer.index(ids_to_index)
    for _id in ids_to_index:
        assert get_indexed_ann(_id) is not None
    for _id in ids_not_to_index:
        with pytest.raises(elasticsearch.exceptions.NotFoundError):
            get_indexed_ann(_id)