void () { Module module = getModule1(); JUnitConfiguration oldRc = createConfiguration(findTestA(module)); oldRc.setWorkingDirectory(module.getModuleFilePath()); RunManagerImpl runManager = new RunManagerImpl(myProject); Element element = new RunnerAndConfigurationSettingsImpl(runManager, oldRc, false).writeScheme(); RunnerAndConfigurationSettingsImpl settings = new RunnerAndConfigurationSettingsImpl(runManager); settings.readExternal(element, false); JUnitConfiguration newRc = (JUnitConfiguration)settings.getConfiguration(); checkTestObject(oldRc.getPersistentData().TEST_OBJECT, newRc); assertThat(newRc.getModules()).containsOnly(module); checkClassName(oldRc.getPersistentData().getMainClassName(), newRc); }