def METHOD_NAME(self, mock_docs):
    top_k = 5
    ds = MemoryDocumentStore()
    ds.write_documents(mock_docs)
    retriever = MemoryRetriever(ds, top_k=top_k)
    result = retriever.run(queries=["PHP", "Java"])
    assert "documents" in result
    assert len(result["documents"]) == 2
    assert len(result["documents"][0]) == top_k
    assert len(result["documents"][1]) == top_k
    assert result["documents"][0][0].content == "PHP is a popular programming language"
    assert result["documents"][1][0].content == "Java is a popular programming language"