void () { CodeStyleScheme scheme1 = myModel.createNewScheme("New Scheme", myModel.getSelectedScheme()); CodeStyleScheme scheme2 = myModel.createNewScheme("Another Scheme", myModel.getSelectedScheme()); myModel.addScheme(scheme1, false); myModel.addScheme(scheme2, false); List<CodeStyleScheme> schemes = myModel.getAllSortedSchemes(); StringBuilder sb = new StringBuilder(); for (CodeStyleScheme scheme : schemes) { if (sb.length() > 0) sb.append('\n'); sb.append(scheme.getName()); } assertEquals( """ Project Default Another Scheme New Scheme""", sb.toString() ); }