Adds mock method to mock object.

Signed-off-by: Wayne <wayne@puppetlabs.com>