protected static String getWarDir() {
        File[] warFiles = new File("target").listFiles(new FilenameFilter() {
            @Override
            public boolean accept(File dir, String name) {
                return name.endsWith(".war");
            }
        });

        assert warFiles != null;
        assertEquals(1, warFiles.length, "Expected only one war file in target directory, run 'mvn clean' and try again");

        return warFiles[0].getAbsolutePath().replaceFirst("\\.war$", "");
    }
Overriding with contents of this pull request, to make fragment scanning work.
<a href="https://github.com/mjeanroy/junit-servers/pull/3"></a>
integration-tests/support/src/main/java/org/apache/shiro/testing/web/AbstractContainerIT.java