title: How to use in memory database with injected test with play java
body: <p>The <a href="https://playframework.com/documentation/2.4.x/JavaFunctionalTest" rel="nofollow">play documentation about functional tests in java</a> shows two modes</p>
  
  <ul>
  <li>using fakeApplication to specify a custom configuration (in memory database in the example)</li>
  <li>using dependency injection to configure the application</li>
  </ul>
  
  <p>I would like to use dependency injection but I have to set custom configuration on application startup like the use of in memory database. </p>
  
  <p>I cannot achieve to do that. I guess this has to be done in the guice builder but I don't know how.</p>