void () { DomainObjectSet<? extends IdeaModule> ideaModules = allModels.getModel(IdeaProject.class).getModules(); List<WebConfiguration> ideaModule = ContainerUtil.mapNotNull(ideaModules, module -> allModels.getModel(module, WebConfiguration.class)); assertEquals(1, ideaModule.size()); WebConfiguration webConfiguration = ideaModule.get(0); assertEquals(1, webConfiguration.getWarModels().size()); final WarModel warModel = webConfiguration.getWarModels().iterator().next(); assertTrue("Expect", toSystemIndependentName(warModel.getWebAppDir().getAbsolutePath()) .endsWith("src/main/webapp")); assertArrayEquals( new String[]{"MANIFEST.MF", "additionalWebInf", "rootContent"}, ContainerUtil.map2Array(warModel.getWebResources(), resource -> resource.getFile().getName())); }