@AfterEach
    public void tearDown() throws Exception {
        server.stop();
        server.destroy();
    }
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