It would really make more sense to use chefspec rather than test-kitchen for doing testing that involves mocking.