title: ElasticSearch in-memory for testing
body: <p>I would like to write some integration with ElasticSearch. For testing I would like to run in-memory ES.</p>
  
  <p>I found some information in documentation, but without example how to write those kind of test. <a href="https://www.elastic.co/guide/en/elasticsearch/reference/1.6/integration-tests.html" rel="noreferrer">Elasticsearch Reference [1.6] » Testing » Java Testing Framework » integration tests
  «  unit tests  </a></p>
  
  <p>Also I found following article, but it's out of data. <a href="http://pedanttinen.blogspot.cz/2013/02/easy-junit-testing-with-elastic-search.html" rel="noreferrer">Easy JUnit testing with Elastic Search</a></p>
  
  <p>I looking example how to start and run ES in-memory and access to it over REST API.</p>