title: How to test that Spring Boot does *not* start if datasource creation failed
body: <p>Is there a way to write unit tests to make sure spring boot API doesn't get started if a certain bean is failed to create. eg: failing to create datasource bean.</p>