I use WebModuleFixtureBuilder all the time to test my plugin.
In some of my tested code i have stuff like:
WebUtil.getWebFacet(myFile, myProject)
which simply throws this exception when i run it from my unit tests:
java.lang.NullPointerException
at com.intellij.javaee.web.WebUtil.getWebFacet(WebUtil.java:72)
i'm guessing that it's because the JavaeeFacetUtil service hasn't been registered.
As this is a static call i can't mock this call out so a workaround for this would be great.