### Question:
ThirdPartyJAXRSModule implements ServerModule { @Override public void start() { this.packages = config.get( ServerSettings.third_party_packages ); for ( ThirdPartyJaxRsPackage tpp : packages ) { List<String> packageNames = packagesFor( tpp ); Collection<Injectable<?>> injectables = extensionInitializer.initializePackages( packageNames ); webServer.addJAXRSPackages( packageNames, tpp.getMountPoint(), injectables ); log.info( "Mounted unmanaged extension [%s] at [%s]", tpp.getPackageName(), tpp.getMountPoint() ); } } ThirdPartyJAXRSModule( WebServer webServer, Config config, LogProvider logProvider,
            NeoServer neoServer ); @Override void start(); @Override void stop();  }### Answer:
@Test public void shouldReportThirdPartyPackagesAtSpecifiedMount() throws Exception { WebServer webServer = mock( WebServer.class ); CommunityNeoServer neoServer = mock( CommunityNeoServer.class ); when( neoServer.baseUri() ).thenReturn( new URI( "http: when( neoServer.getWebServer() ).thenReturn( webServer ); Database database = mock( Database.class ); when( neoServer.getDatabase() ).thenReturn( database ); Config config = mock( Config.class ); List<ThirdPartyJaxRsPackage> jaxRsPackages = new ArrayList<>(); String path = "/third/party/package"; jaxRsPackages.add( new ThirdPartyJaxRsPackage( "org.example.neo4j", path ) ); when( config.get( ServerSettings.third_party_packages ) ).thenReturn( jaxRsPackages ); ThirdPartyJAXRSModule module = new ThirdPartyJAXRSModule( webServer, config, NullLogProvider.getInstance(), neoServer ); module.start(); verify( webServer ).addJAXRSPackages( any( List.class ), anyString(), anyCollection() ); }