### Question:
ServerStartupErrors { public static ServerStartupException translateToServerStartupError( Throwable cause ) { Throwable rootCause = Exceptions.rootCause( cause ); if ( rootCause instanceof UpgradeNotAllowedException ) { return new UpgradeDisallowedStartupException( (UpgradeNotAllowedException) rootCause ); } return new ServerStartupException( format( "Starting Neo4j failed: %s", cause.getMessage() ), cause ); } private  ServerStartupErrors(); static ServerStartupException translateToServerStartupError( Throwable cause );  }### Answer:
@Test public void shouldDescribeUpgradeFailureInAFriendlyWay() { AssertableLogProvider logging = new AssertableLogProvider(); LifecycleException error = new LifecycleException( new Object(), STARTING, STARTED, new RuntimeException( "Error starting org.neo4j.kernel.ha.factory.EnterpriseFacadeFactory", new LifecycleException( new Object(), STARTING, STARTED, new LifecycleException( new Object(), STARTING, STARTED, new UpgradeNotAllowedByConfigurationException() ) ) ) ); translateToServerStartupError( error ).describeTo( logging.getLog( "console" ) ); logging.assertExactly( inLog( "console" ) .error( "Neo4j cannot be started because the database files require upgrading and upgrades are disabled " + "in the configuration. Please set '" + GraphDatabaseSettings.allow_upgrade.name() + "' to 'true' " + "in your configuration file and try again." ) ); }