In some cases use the previous method is simpler because the implementation of the ProviderBootstrapper.

```python
self.pb._provider_config = mock.Mock()
self.pb._provider_config.get_ca_cert_path = mock.MagicMock(return_value=where("cacert.pem"))
```

Is better because we have a 
```python
leap_assert(self._provider_config, "We need a provider config!")
```