void () { final List<ArrangementSectionRule> sections = List.of(section("start section", "end section", rule(true, METHOD, PRIVATE), rule(false, METHOD, PUBLIC)), section("start section", "end section", rule(true, FIELD))); final StdArrangementSettings settings = settings(List.of(group(OVERRIDDEN_METHODS)), sections); final Element holder = doSerializationTest(settings, emptySettings()); assertEquals(2, holder.getChildren().size()); assertNotNull(holder.getChild("groups")); final Element rules = holder.getChild("rules"); assertNotNull(rules); assertEquals(2, rules.getChildren().size()); final Element section = rules.getChild("section"); assertEquals(section.getAttribute("start_comment").getValue(), "start section"); assertEquals(section.getAttribute("end_comment").getValue(), "end section"); }