 	afterEach (done) -> server.stop done
 
 	it "should route TCP messages", (done) ->
-
+    scope = mockudp "127.0.0.1:8125"
     incrementTransactionCountSpy = sinon.spy stats, 'incrementTransactionCount' # check if the method was called
     incrementTransactionStatusCountSpy = sinon.spy stats, 'incrementTransactionStatusCount' # check if the method was called
     measureTransactionDurationSpy = sinon.spy stats, 'measureTransactionDuration' # check if the method was called

sinon = require "sinon"
stats = require "../../lib/middleware/stats"
mockudp = require "mock-udp"
scope = mockudp "127.0.0.1:8125"

describe "TCP/TLS Integration Tests", ->
	testMessage = "This is an awesome test message!"

        incrementTransactionStatusCountSpy.calledOnce.should.be.true
        incrementTransactionStatusCountSpy.getCall(0).args[0].should.have.property 'transactionStatus', 'Successful'
        measureTransactionDurationSpy.calledOnce.should.be.true
        scope.buffer
        scope.done()
				done()

	it "should route TLS messages", (done) ->
