@Test
public void testXLZ() throws Exception {

    try (InputStream input = XLZParserTest.class.getResourceAsStream("/test-documents/testXLIFF12.xlz")) {
        Metadata metadata = new Metadata();
        ContentHandler handler = new BodyContentHandler();
        new XLZParser().parse(input, handler, metadata, new ParseContext());
        String content = handler.toString();
        assertContains("Hooray", content);
        assertEquals("2", metadata.get("file-count"));
        assertEquals("4", metadata.get("tu-count"));
        assertEquals("en", metadata.get("source-language"));
        assertEquals("fr", metadata.get("target-language"));
    }
}