         let remoteResourceController = RemoteResourceController(drop: resourceDrop)
         remoteResourceController.addRoutes()
         
-        var authConfig = try Config(arguments: ["vapor", "--env=test --port=8082"])
+        var authConfig = try Config(arguments: ["vapor", "--env=test"])
         let newClient = OAuthClient(clientID: newClientID, redirectURIs: [redirectURI], clientSecret: clientSecret, validScopes: [scope, scope2], confidential: true, firstParty: true)
         let fakeCodeManager = FakeCodeManager()
         let clientRetriever = StaticClientRetriever(clients: [newClient])

    
    func addRoutes() {
        
        let oauthMiddleware = OAuth2Middleware(tokenIntrospectionEndpoint: "http://localhost:8082", requiredScopes: nil, client: drop.client)
        let protected = drop.grouped(oauthMiddleware)
        
        protected.get("protected", handler: protectedHandler)

        let userRequest = Request(method: .get, uri: "/user")
        userRequest.headers[.authorization] = "Bearer \(fakeTokenString)"
        
        let userResponse = try resourceDrop.respond(to: userRequest)
        
        XCTAssertEqual(userResponse.status, .ok)
        
