private Path writeTemporaryArchiveFile(InputStream inputStream, String archiveType) throws IOException {
        Path tmp = Files.createTempFile("apache-tika-server-test-tmp-", "." + archiveType);
        Files.copy(inputStream, tmp, StandardCopyOption.REPLACE_EXISTING);
        return tmp;
    }
Have the test do {@link JAXRSServerFactoryBean#setProviders(java.util.List)}, if needed
tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/CXFTestBase.java