title: Complete unit testing example in play framework + DI
body: <p>I am looking for complete example of unit test for play 2.4 application + DI.
  The idea is very simple:</p>
  
  <ol>
  <li>We have application.test.conf from which I want to read the configuration data, run evolutions etc.</li>
  <li><p>Then I want to inject instance of class which uses DI, example:</p>
  
  <p>class UserBean @Inject()(dbConfigProvider: DatabaseConfigProvider, implicit val configuration: Configuration, cacheApi: CacheApi) {</p>
  
  <p>}</p></li>
  <li><p>Then call methods of injected object and test it.</p></li>
  </ol>
  
  <p>The problem that I faced described here: <a href="https://stackoverflow.com/questions/37192401/inject-my-bean-like-class-to-test-play-2-4">https://stackoverflow.com/questions/37192401/inject-my-bean-like-class-to-test-play-2-4</a> but nobody answers my question.
  Appreciate any help</p>