title: Testing Solr via Embedded Server
body: <p>I'm coding some tests for my solr-indexer application. Following testing best practices, I want to write code self-dependant, just loading the <code>schema.xml</code> and <code>solrconfig.xml</code> and creating a temporary data tree for the indexing-searching tests.
  As the application is most written in java, I'm dealing with SolrJ library, but I'm getting problems (well, I'm lost in the universe of corecontainers-coredescriptor-coreconfig-solrcore ...)
  Anyone can place here some code to create an Embedded Server that loads the config and also writes to a parameter-pased data-dir?</p>