@Test
    public void testTMX() throws Exception {
        try (InputStream input = getResourceAsStream("/test-documents/testTMX.tmx")) {
            Metadata metadata = new Metadata();
            ContentHandler handler = new BodyContentHandler();
            new TMXParser().parse(input, handler, metadata, new ParseContext());
            String content = handler.toString();
            assertContains("Hello world!", content);
            assertContains("Salut lume!", content);

            assertEquals("1", metadata.get("tu-count"));
            assertEquals("2", metadata.get("tuv-count"));
            assertEquals("en-us", metadata.get("source-language"));
            assertEquals("ro-ro", metadata.get("target-language"));
            assertEquals("apache-tika", metadata.get("creation-tool"));
        }
    }
Test Case for <code>TMXParser</code>.
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-xml-module/src/test/java/org/apache/tika/parser/tmx/TMXParserTest.java