}
assertEquals(0, inline);
assertEquals(2, attach);
stream.close();
p.reset();
//now try turning off inline
stream = TikaInputStream.get(this.getClass().getResource(path));
PDFParserConfig config = new PDFParserConfig();
config.setExtractInlineImages(true);