diff --git a/elasticsearch-transport/test/unit/transport_manticore_test.rb b/elasticsearch-transport/test/unit/transport_manticore_test.rb
index <HASH>..<HASH> 100644
--- a/elasticsearch-transport/test/unit/transport_manticore_test.rb
+++ b/elasticsearch-transport/test/unit/transport_manticore_test.rb
@@ -103,8 +103,13 @@ else
       should "allow to set options for Manticore" do
         options = { :headers => {"User-Agent" => "myapp-0.0" }}
         transport = Manticore.new :hosts => [ { :host => 'foobar', :port => 1234 } ], :options => options
-        transport.connections.first.connection.expects(:get).
-          with('http://foobar:1234//', options).returns(stub_everything)
+        transport.connections.first.connection
+          .expects(:get)
+          .with do |host, options|
+            assert_equal 'myapp-0.0', options[:headers]['User-Agent']
+            true
+          end
+          .returns(stub_everything)
 
         transport.perform_request 'GET', '/', {}
       end
[CLIENT] Fixed a failing Manticore unit test