Tests whether the encoding is correctly detected by the XML parser. This
is done by loading an XML file with the encoding "UTF-16". If this
encoding is not detected correctly, an exception will be thrown that
"Content is not allowed in prolog". This test case is related to issue
34204.
Tests whether the encoding is written to the generated XML file.
testSaveWithInvalidTransformerFactory
public void testSaveWithInvalidTransformerFactory()(Code)
Tests saving a configuration when an invalid transformer factory is
specified. In this case the error thrown by the TransformerFactory class
should be caught and re-thrown as a ConfigurationException.
Tests whether a default encoding is used if no specific encoding is set.
According to the XSLT specification (http://www.w3.org/TR/xslt#output)
this should be either UTF-8 or UTF-16.