title: Loading a plugin into an embedded version of Neo4j database
body: <p>In a standalone version of Neo4j database server, there's this <code>plugin</code> folder in which I can copy <a href="https://github.com/neo4j-contrib/neo4j-apoc-procedures" rel="nofollow noreferrer">APOC</a> library and then use its awesome functions in my queries. Right now, I'm trying to do the same in a test Java project which instantiates an embedded version of Neo4j, using the <a href="https://github.com/graphaware/neo4j-framework" rel="nofollow noreferrer">Graphaware</a> framework.</p>
  
  <p>My question is, how can I feed the APOC library to the embedded version of the Neo4j when it is setup like this:</p>
  
  <pre><code>class ModuleTest
  {
      GraphDatabaseService database;
  
      @Before
      public void setUp()
      {
          String confFile = this.getClass().getClassLoader().getResource("neo4j-module.conf").getPath();
          database = new TestGraphDatabaseFactory()
                  .newImpermanentDatabaseBuilder()
                  .loadPropertiesFromFile(confFile)
                  .newGraphDatabase();
      }
  }
  </code></pre>
  
  <p>?</p>