TestConnection
TestConnection implements aws.smithy.kotlin.runtime.http.engine.HttpClientEngine with canned responses. For each expected request it will capture the actual and respond with the pre-configured response (or a basic 200-OK with an empty body if none was configured).
After all requests/responses have been made use assertRequests to test that the actual requests captured match the expected.
NOTE: This engine is only capable of modeling request/response pairs. More complicated interactions such as duplex streaming are not implemented.