**Background**: I am using Play 2.4 (Java) with InjectedRoutesGenerator and a Guice module to configure various dependencies. But during unit tests, the FakeApplication is trying to load all the Controllers from routes file through the injector and some of them are failing due to external dependencies not available in the unit test environment.

**How do I disable the default routes file processing during unit tests that extend from play.test.WithApplication? Or how can I replace the default routes with a custom routes file?**

I tried to use the [play.http.router config option override referenced here](https://github.com/playframework/playframework/blob/master/templates/play-java-intro/conf/application.conf#L17), but I get `Router not found` error with anything I tried. Obviously I am making some mistake, I am not sure where. 

I am not quite understanding the link between the my.application.Router and conf/my.application.routes referenced in the [config reference](https://github.com/playframework/playframework/blob/master/templates/play-java-intro/conf/application.conf#L17). Route files other than `routes` do not get compiled either.