This is just an FYI for the future, this example doesn't provide a lot of value because even without the method being defined in the launchd provider this example will always pass because the restart method is defined in the base provider:

```irb
From: /workspace/puppet-3.x/src/puppet/spec/unit/provider/service/launchd_spec.rb @ line 124 :

    119:       subject.expects(:execute).with([:launchctl, :load, '-w', joblabel])
    120:       subject.start
    121:     end
    122: 
    123:     it "(#16271) Should respond to restart" do
 => 124:       require 'pry'; binding.pry
    125:       subject.should respond_to :restart
    126:     end
    127: 
    128:     it "(#16271) Should stop and start the service when a restart is called" do
    129:       subject.expects(:stop)

[1] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_5>)> m = subject.method :restart
=> #<Method: Puppet::Type::Service::ProviderLaunchd#restart>
[2] pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_5>)> m.source_location
=> ["/workspace/puppet-3.x/src/puppet/lib/puppet/provider.rb", 420]
```