Date: 2026-06-19 Version: v2.0.0 (MCP Edition + Gateway Runtime) Status: ✅ PASS
The test suite provides comprehensive coverage across two layers: the Protocol Adaptor (JSON-RPC 2.0 & Native CloudEvents) and the Gateway Runtime (HTTP REST API, Task lifecycle, SSE streaming, AgentCard discovery).
| Test Class | Scenarios | Result | Description |
|---|---|---|---|
EnhancedA2AProtocolAdaptorTest | 12 | PASS | Unit tests covering core protocol logic, MCP parsing, Batching, Error handling, and A2A Standard Ops. |
McpIntegrationDemoTest | 1 | PASS | End-to-end RPC demo using MCP (JSON-RPC). |
McpPatternsIntegrationTest | 2 | PASS | End-to-end Pub/Sub and Streaming demos using MCP (JSON-RPC). |
McpComprehensiveDemoTest | 3 | PASS | Validation of all 3 patterns in MCP mode. |
CloudEventsComprehensiveDemoTest | 3 | PASS | Validation of all 3 patterns in Native CloudEvents mode. |
A2ATopicFactoryTest | 8 | PASS | Topic naming and parsing (request/response/status topics). |
| Test Class | Scenarios | Result | Description |
|---|---|---|---|
TaskRegistryTest | 6 | PASS | Task state machine transitions, parent-child relationships, TTL auto-cleanup. |
InMemoryA2AMessageTransportTest | 4 | PASS | In-memory pub/sub delivery, subscribe/unsubscribe, wildcard topics. |
A2AGatewayServiceTest | 8 | PASS | Gateway service layer: task submission (sync/async), response handling, cancel, status subscription. |
A2AGatewayEndToEndTest | 6 | PASS | In-process end-to-end: client → gateway → transport → agent → response → client. |
A2AClientServerIntegrationTest | 20 | PASS | Real HTTP client-server integration: AgentCard registration, sync/async tasks, status query, cancel, list agents, SSE streaming. |
Total Scenarios: 73 (All Passed)
EnhancedA2AProtocolAdaptorTest (Unit)task/get, message/sendStream mappings.A2ATopicFactoryTest (Unit)TaskRegistryTest (Unit)InMemoryA2AMessageTransportTest (Unit)A2AGatewayServiceTest (Integration)A2AGatewayEndToEndTest (Integration)A2AClientServerIntegrationTest (HTTP Integration)POST /a2a/tasks?mode=sync returns completed result.POST /a2a/tasks?mode=async returns taskId, then GET /a2a/tasks/{taskId} polls status.DELETE /a2a/tasks/{taskId} cancels the task.GET /a2a/agents returns registered agent list.A2AClient.getTaskStatus() returns TaskResult, listAgents() returns List<String>.GET /a2a/tasks/{taskId}/stream receives real-time state updates via text/event-stream.McpIntegrationDemoTest (Integration - RPC)req-id <-> collaborationid).McpPatternsIntegrationTest (Integration - Advanced)_topic -> subject mapping for Broadcast._seq -> seq mapping for ordered chunks.McpComprehensiveDemoTest (Protocol: JSON-RPC)CloudEventsComprehensiveDemoTest (Protocol: Native CloudEvents).req / .resp CloudEvents works.subject works.seq extension works.The A2A Protocol v2.0 implementation is stable, functionally complete, and ready for production deployment. It successfully supports: