InputStream input = iBooksParserTest.class.getResourceAsStream(
"/test-documents/testiBooks.ibooks");
try {
Metadata metadata = new Metadata();
ContentHandler handler = new BodyContentHandler();
new EpubParser().parse(input, handler, metadata, new ParseContext());
assertEquals("application/x-ibooks+zip",
metadata.get(Metadata.CONTENT_TYPE));
assertEquals("en-GB",
metadata.get(TikaCoreProperties.LANGUAGE));