void () { final ExcludesConfigurationState state = new ExcludesConfigurationState(); final VirtualFile file = getTempDir().createVirtualFile("xxx.xml"); state.getFiles().add(new ExcludedFileState(file.getUrl(), FRAMEWORK_ID)); getNewConfiguration().loadState(state); assertTrue(isFileExcluded(file)); assertThat(getOldConfiguration().getState()).isNull(); final ExcludesConfigurationState newState = getNewConfiguration().getState(); assertNotNull(newState); assertThat(newState.getFiles()).hasSize(1); }