added an example that injects a Provider in a bean