How to start elasticsearch 5.1 embedded in my java application? : <p>With elasticsearch 2.x I used the following code to launch an embedded Node for testing:</p>

<pre><code>@Bean
public Node elasticSearchTestNode() {
    return NodeBuilder.nodeBuilder()
            .settings(Settings.settingsBuilder()
                    .put("http.enabled", "true")
                    .put("path.home", "elasticsearch-data")
                    .build())
            .node();
}
</code></pre>

<p>This does not compile any more. How can I start an embedded node in 5.x ?</p>
