new ByteArrayInputStream(data), handler, metadata, context);
fail();
} catch (TikaException expected) {
}
MimeConfig config = new MimeConfig();
config.setMaxHeaderLen(-1);
config.setMaxLineLen(-1);
context.set(MimeConfig.class, config);
parser.parse(
new ByteArrayInputStream(data), handler, metadata, context);
assertEquals(name.trim(), metadata.get(TikaCoreProperties.CREATOR));
}