diff --git a/spec/unit/resource_spec.rb b/spec/unit/resource_spec.rb
index <HASH>..<HASH> 100755
--- a/spec/unit/resource_spec.rb
+++ b/spec/unit/resource_spec.rb
@@ -365,9 +365,7 @@ describe Puppet::Resource do
             Puppet::DataBinding.indirection.expects(:find).with('lookup_options', any_parameters).throws(:no_such_key)
             Puppet::DataBinding.indirection.expects(:find).with('apache::port', any_parameters).returns(nil)
 
-            rt = resource.resource_type
-            rt.send(:inject_external_parameters, resource, scope)
-            rt.send(:assign_defaults, resource, scope, {})
+            inject_and_set_defaults(resource, scope)
 
             expect(resource[:port]).to eq('80')
           end
(PUP-<I>) Fix test that was broken in master after merge

One of the resource tests called private methods on the resource
type instead of the API method. That test broke when merging to
master. This commit fixes the problem.