@Test
void validate() {

    assertThatThrownBy(() -> config.validate())
            .hasMessageContaining("mongo uri must be configured");
    config.uri = "mongodb://uri/db";
    assertThatThrownBy(() -> config.validate())
            .hasMessageContaining("no collection/view added");
}