Test Results: EventMesh A2A Protocol v2.0

Date: 2025-12-08 Version: v2.0.0 (MCP Edition) Status: ✅ PASS

Test Suite Summary

The test suite provides comprehensive coverage across two protocols (JSON-RPC 2.0 & Native CloudEvents) and three interaction patterns (RPC, Pub/Sub, Streaming).

Test ClassScenariosResultDescription
EnhancedA2AProtocolAdaptorTest12PASSUnit tests covering core protocol logic, MCP parsing, Batching, Error handling, and A2A Standard Ops.
McpIntegrationDemoTest1PASSEnd-to-end RPC demo using MCP (JSON-RPC).
McpPatternsIntegrationTest2PASSEnd-to-end Pub/Sub and Streaming demos using MCP (JSON-RPC).
McpComprehensiveDemoTest3PASSValidation of all 3 patterns in MCP mode.
CloudEventsComprehensiveDemoTest3PASSValidation of all 3 patterns in Native CloudEvents mode.

Total Scenarios: 21 (All Passed)

Detailed Test Cases

1. EnhancedA2AProtocolAdaptorTest (Unit)

  • MCP Core: Validated Request/Response/Notification mapping.
  • Error Handling: Validated JSON-RPC Error object mapping.
  • Batching: Validated JSON Array splitting.
  • Legacy Removal: Confirmed legacy A2A format is no longer processed.
  • A2A Ops: Verified task/get, message/sendStream mappings.

2. McpIntegrationDemoTest (Integration - RPC)

  • Simulated Client -> EventMesh -> Server flow.
  • Verified correlation ID linking (req-id <-> collaborationid).

3. McpPatternsIntegrationTest (Integration - Advanced)

  • Pub/Sub: Verified _topic -> subject mapping for Broadcast.
  • Streaming: Verified _seq -> seq mapping for ordered chunks.

4. McpComprehensiveDemoTest (Protocol: JSON-RPC)

  • RPC: Request/Response flow verification.
  • Pub/Sub: Broadcast to Topic routing verification.
  • Streaming: Sequence ID preservation verification.

5. CloudEventsComprehensiveDemoTest (Protocol: Native CloudEvents)

  • RPC: Verified manual construction of .req / .resp CloudEvents works.
  • Pub/Sub: Verified manual setting of subject works.
  • Streaming: Verified manual setting of seq extension works.

Environment

  • JDK: Java 8 (Source/Target 1.8), Compatible with Java 21 Runtime
  • Build System: Gradle 7.x+
  • Dependencies: Jackson 2.18+, CloudEvents SDK 3.0+

Conclusion

The A2A Protocol v2.0 implementation is stable, functionally complete, and ready for production deployment. It successfully supports the Hybrid Architecture (MCP & CloudEvents) and all three interaction patterns (RPC, Pub/Sub, Streaming) on the EventMesh runtime.