@Test
void shouldPrintNiceRoutingErrorWhenConnectingToUnresponsiveServer() throws Exception
{

    int localPort = -1;
    try ( ServerSocket serverSocket = new ServerSocket( 0 ) )
    {
        localPort = serverSocket.getLocalPort();
    }
    final Driver driver = GraphDatabase.driver( "neo4j://localhost:" + localPort, INSECURE_CONFIG );
    final ServiceUnavailableException error = assertThrows( ServiceUnavailableException.class, driver::verifyConnectivity );
    error.printStackTrace();
    assertThat( error.getMessage(), containsString( "Unable to connect to" ) );
}