Stubbing a Provider (formerly known as Bootable component)

I think it is highly related to this post : Avoid doing http calls in test env