void () { final DisabledAutodetectionInfo state = new DisabledAutodetectionInfo(); final VirtualFile file = getTempDir().createVirtualFile("my-file.xml"); state.getElements().add(new DisabledAutodetectionByTypeElement(FRAMEWORK_ID, myModule.getName(), file.getUrl(), false)); getOldConfiguration().loadState(state); assertTrue(isFileExcluded(file)); assertNull(getNewConfiguration().getState()); assertOneElement(getOldConfiguration().getState().getElements()); }