Issue #1470548: Add test for fragment producing with XMLGenerator.