*
* @see "RAT-81"
*/
@Test
public void binaryWithMalformedInputRAT81() throws Throwable {
FileDocument doc = new FileDocument(new File("src/test/resources/binaries/UTF16_with_signature.xml"));
Reader r = null;
try {
char[] dummy = new char[100];
r = doc.reader();
r.read(dummy);
// if we get here, the UTF-16 encoded file didn't throw
// any exception, try the UTF-8 encoded one
r.close();
doc = new FileDocument(new File("src/test/resources/binaries/UTF8_with_signature.xml"));
r = doc.reader();
r.read(dummy);
// still here? can't test on this platform
System.err.println("Skipping testBinaryWithMalformedInput");
} catch (IOException e) {
if (r!= null) {