void () { CodeStyleScheme projectScheme = myModel.getProjectScheme(); myModel.selectScheme(projectScheme, null); assertEquals(CodeStyleScheme.PROJECT_SCHEME_NAME, myModel.getSelectedScheme().getName()); CodeStyleSettings settings = myModel.getCloneSettings(projectScheme); settings.setDefaultRightMargin(66); CodeStyleScheme newScheme = myModel.exportProjectScheme("New Scheme"); assertEquals(66, newScheme.getCodeStyleSettings().getDefaultRightMargin()); assertNotSame(projectScheme.getCodeStyleSettings(), newScheme.getCodeStyleSettings()); }