DBus is the most common RPC middleware used in Linux desktop shell development. Unfortunately it does not provide much support for testing services using it. I created libqtdbustest and libqtdbusmock to fill this gap, for Qt/C++ based services, at least.
I guess this is really just a link to someone’s Github project. It’s a spec-style testing framework for BASH that has helped me write tested shell scripts!