SImply use respond_to to check if exception object is fine
No need to modify gemspec
Use rspec shared example for Middleware specs with jruby native errors