@Test
public void testParsing_pdf2XMLwithIMages_ShouldWork() throws Exception {

    InputStream inputStream = this.getClass().getResourceAsStream("pdfalto_Images.xml");
    SAXParser p = spf.newSAXParser();
    p.parse(inputStream, target);
    List<LayoutToken> tokenList = target.getTokenization();
    assertTrue(tokenList.size() > 0);
    assertThat(images.size(), is(16));
    assertThat(document.getImages().size(), is(16));
    assertTrue(document.getPages().size() == 4);
    assertTrue(document.getBlocks().size() == 26);
}