### Question:
StartupLogger { String getStartingMessage() { StringBuilder sb = new StringBuilder(); String sdnRx = getVersionOf(Node.class).map(v -> "SDN/RX v" + v).orElse("an unknown version of SDN/RX"); String sdC = getVersionOf(AbstractMappingContext.class).map(v -> "Spring Data Commons v" + v) .orElse("an unknown version of Spring Data Commons"); String driver = getVersionOf(Driver.class).map(v -> "Neo4j Driver v" + v) .orElse("an unknown version of the Neo4j Java Driver"); RepositoryConfigurationExtensionSupport f; sb.append("Bootstrapping ").append(mode.displayValue).append(" Neo4j repositories based on ") .append(sdnRx) .append(" with ").append(sdC) .append(" and ").append(driver).append("."); return sb.toString(); } StartupLogger(Mode mode);   }### Answer:
@Test void startingMessageShouldFit() { String message = new StartupLogger(Mode.IMPERATIVE).getStartingMessage(); assertThat(message).matches( "Bootstrapping imperative Neo4j repositories based on an unknown version of SDN\\/RX with Spring Data Commons v2\\.\\d+\\.\\d+.RELEASE and Neo4j Driver v4\\.\\d+\\.\\d+(?:-.*)\\."); }