@Test
public void testGetXmlProlog_Utf8() throws IOException {

    final InputStream input = stringToStream("<?xml encoding=\"UTF-8\"?>", "UTF-8");
    final String guessedEncoding = "UTF-8";
    final String prologEncoding = XmlReader.getXmlProlog(input, guessedEncoding);
    assertEquals("UTF-8", prologEncoding);
}