this(staxImpl, javaEncoding, new String[] { xmlEncoding });
}
protected void runTest() throws Throwable {
XMLInputFactory factory = staxImpl.newNormalizedXMLInputFactory();
XMLStreamReader reader = factory.createXMLStreamReader(new ByteArrayInputStream(
"<?xml version=\"1.0\"?><root/>".getBytes(javaEncoding)));
String actualEncoding = reader.getEncoding();
assertTrue("Expected one of " + xmlEncodings + ", but got " + actualEncoding,
xmlEncodings.contains(actualEncoding));
}