Neo4jBootstrap implements Bootstrap { private void build() { BoltConnector bolt = new BoltConnector("0"); graphDb = new GraphDatabaseFactory() .newEmbeddedDatabaseBuilder(Paths.get(tmp).toFile()) .setConfig(bolt.enabled, "true") .setConfig(bolt.type, "BOLT") .setConfig(bolt.address, ip + ":" + port) .newGraphDatabase(); } Neo4jBootstrap();  Neo4jBootstrap(URL url); @Override ComponentMetadata getMetadata(); @Override String getProperties(); @Override void loadConfig(Map<String, String> configs); @Override Bootstrap start(); @Override Bootstrap stop(); GraphDatabaseService getNeo4jGraph();  }
@Test public void neo4jShouldStartWithRealDriver() { Driver driver = GraphDatabase.driver( "bolt: Config.build() .withEncryptionLevel(Config.EncryptionLevel.NONE) .toConfig() ); List<Record> results = new ArrayList<>(); try (Session session = driver.session()) { session.run("CREATE (person:Person {name: {name}, title:'King'})", Values.parameters("name", "Arthur")); StatementResult result = session.run("MATCH (a:Person) WHERE a.name = 'Arthur' RETURN a.name AS name, a.title AS title"); while (result.hasNext()) { Record record = result.next(); results.add(record); LOGGER.debug(record.get("title").asString() + " " + record.get("name").asString()); } } assertEquals(1, results.size()); assertEquals("King", results.get(0).get("title").asString()); assertEquals("Arthur", results.get(0).get("name").asString()); }