@Test
public void testEmptyStream() throws Exception {

    parser.setAutoDetect(true);
    try {
        validateSchema2("missingfile.txt");
        fail("Expecting error for missing file or empty stream");
    } catch (NullPointerException e) {
        // ok
    }
}