Element (@NotNull StdArrangementSettings settings, @NotNull StdArrangementSettings defaultSettings) { Element holder = new Element("holder"); ArrangementSettingsSerializer instance = new TestArrangementSettingsSerializer(defaultSettings); instance.serialize(settings, holder); ArrangementSettings restored = instance.deserialize(holder); assertEquals(settings, restored); return holder; }