You can point the SDK to a fake server running in network mode. Each mocked SDK implements the same interface as the standard SDKs. While the standard ones will delegate the calls to the AWS REST API, ...
Jedis-Mock is a simple in-memory mock of Redis/Valkey for Java testing, which can also work as test proxy. Despite its name, it works on network protocol level and can be used with any Redis client ...