diff --git a/test/adapters/test_middleware_test.rb b/test/adapters/test_middleware_test.rb
index <HASH>..<HASH> 100644
--- a/test/adapters/test_middleware_test.rb
+++ b/test/adapters/test_middleware_test.rb
@@ -2,8 +2,9 @@ require File.expand_path('../../helper', __FILE__)
 
 module Adapters
   class TestMiddleware < Faraday::TestCase
+    Stubs = Faraday::Adapter.lookup_middleware(:test)::Stubs
     def setup
-      @stubs = Faraday::Adapter::Test::Stubs.new
+      @stubs = Stubs.new
       @conn  = Faraday.new do |builder|
         builder.adapter :test, @stubs
       end
@@ -62,7 +63,7 @@ module Adapters
     end
 
     def test_raises_an_error_if_no_stub_is_found_for_request
-      assert_raises Faraday::Adapter::Test::Stubs::NotFound do
+      assert_raises Stubs::NotFound do
         @conn.get('/invalid'){ [200, {}, []] }
       end
     end
removed autoload, caused problems with the Test adapter tests SOMETIMES