def METHOD_NAME(self):
    with SearchIndexingBufferedSender("endpoint", "index name", CREDENTIAL, auto_flush=False) as client:
        assert client._index_documents_batch
        client.upload_documents(["upload1"])
        client.delete_documents(["delete1", "delete2"])
        client.merge_documents(["merge1", "merge2", "merge3"])
        client.merge_or_upload_documents(["merge_or_upload1"])
        assert len(client.actions) == 7
        actions = client._index_documents_batch.dequeue_actions()
        assert len(client.actions) == 0
        client._index_documents_batch.enqueue_actions(actions)
        assert len(client.actions) == 7
        actions = client._index_documents_batch.dequeue_actions()
        assert len(client.actions) == 0
        for action in actions:
            client._index_documents_batch.enqueue_actions(action)
        assert len(client.actions) == 7