void () { JpsModule module = myProject.addModule("m", JpsJavaModuleType.INSTANCE); module.addExcludePattern("file://url", "*.class"); JpsExcludePattern pattern = assertOneElement(module.getExcludePatterns()); assertEquals("file://url", pattern.getBaseDirUrl()); assertEquals("*.class", pattern.getPattern()); }