@Override
    public InputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws TikaException, IOException {
        return fetch(fetchKey, -1, -1, metadata);
    }
@Test
    public void testConfig() throws Exception {
        FetcherManager fetcherManager = FetcherManager.load(
                Paths.get(this.getClass().getResource("/tika-config-s3.xml").toURI()));
        Fetcher fetcher = fetcherManager.getFetcher("s3");
        Metadata metadata = new Metadata();
        try (InputStream is = fetcher.fetch(FETCH_STRING, metadata, new ParseContext())) {
            Files.copy(is, outputFile, StandardCopyOption.REPLACE_EXISTING);
        }
    }