+
+/** Test a round trip via the XML representation */
+BOOST_AUTO_TEST_CASE (colour_conversion_test4)
+{
+ for (auto const& i: PresetColourConversion::all ()) {
+ xmlpp::Document out;
+ xmlpp::Element* out_root = out.create_root_node ("Test");
+ i.conversion.as_xml (out_root);
+ shared_ptr<cxml::Document> in (new cxml::Document ("Test"));
+ in->read_string (out.write_to_string ("UTF-8"));
+ BOOST_CHECK (ColourConversion::from_xml (in, Film::current_state_version).get () == i.conversion);
+ }
+}