diff --git a/test/core/definitions/serialization_test.dart b/test/core/definitions/serialization_test.dart index 82b149fb..ef8d4a95 100644 --- a/test/core/definitions/serialization_test.dart +++ b/test/core/definitions/serialization_test.dart @@ -119,5 +119,25 @@ void main() { link.toJson(), ); }); + + test("AdditionalExpectedResponses", () async { + final additionalExpectedResponseJson = { + "success": true, + "contentType": "application/cbor", + "schema": "foobar", + }; + + final link = AdditionalExpectedResponse.fromJson( + additionalExpectedResponseJson, + // TODO: Document this parameter + "application/json", + PrefixMapping(), + ); + + expect( + additionalExpectedResponseJson, + link.toJson(), + ); + }); }); }