If both `main` and `test` source sets have a `java` template set, we want to make sure that works fine.