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