void () { CodeStyleScheme newScheme = myModel.createNewScheme("New Scheme", myModel.getSelectedScheme()); myModel.addScheme(newScheme, false); CodeStyleSettings newSettings = myModel.getCloneSettings(newScheme); assertNotNull(newSettings); CodeStyleSettings before = myModel.getCloneSettings(myDefaultScheme); before.setDefaultRightMargin(66); assertEquals(3, myModel.getSchemes().size()); myModel.reset(); CodeStyleSettings after = myModel.getCloneSettings(myDefaultScheme); assertSame(CodeStyleSettings.getDefaults().getDefaultRightMargin(), after.getDefaultRightMargin()); assertSame(before, after); assertEquals(2, myModel.getSchemes().size()); }