Mule Solace PubSub+ connector best way to mimic SOLACE:CONNECTIVITY error in MUnit

Just for extra information, there is this MuleSoft link for setting up proper error contexts but I cannot see where to pull the correct information from in terms of the java packages for error types and cause etc.