public String parseToStringExample() throws IOException, SAXException, TikaException {
        Tika tika = new Tika();
        try (InputStream stream = ParsingExample.class.getResourceAsStream("test.doc")) {
            return tika.parseToString(stream);
        }
    }
@Test
    public void testParseToStringExample() throws IOException, SAXException, TikaException {
        String result = parsingExample
                .parseToStringExample()
                .trim();
        assertEquals("test", result, "enough detectors?");
    }