@Test public void shouldLogHelpfulStartupMessages() { CommunityBootstrapper boot = new CommunityBootstrapper(); Map<String,String> propertyPairs = getPropertyPairs(); boot.start( testDir.directory(), Optional.of( new File( "nonexistent-file.conf" ) ), propertyPairs ); URI uri = boot.getServer().baseUri(); boot.stop(); List<String> captured = suppressOutput.getOutputVoice().lines(); assertThat( captured, containsAtLeastTheseLines( warn( "Config file \\[nonexistent-file.conf\\] does not exist." ), info( NEO4J_IS_STARTING_MESSAGE ), info( "Starting..." ), info( "Started." ), info( "Remote interface available at " + uri.toString() ), info( "Stopping..." ), info( "Stopped." ) ) ); }