           trx[0].request.body.should.be.exactly testMessage
           trx[0].response.body.should.be.exactly 'TCP OK'
           done()
+
+  it "should route MLLP messages", (done) ->
+    server.start null, null, null, null, 7787, null, ->
+      sendTCPTestMessage 4005, (data) ->
+        data.should.be.exactly 'MLLP OK' + String.fromCharCode(0o034) + '\n'
+        done()



describe "TCP/TLS Integration Tests", ->
  testMessage = "This is an awesome test message!"
  mockTCPServer = null
  mockHTTPServer = null
  mockTLSServer = null
  mockTLSServerWithoutClientCert = null

  channel1 = new Channel
    name: 'TCPIntegrationChannel1'

      secured: true
      primary: true
      cert: fs.readFileSync 'test/resources/server-tls/cert.pem'
    ]
  channel6 = new Channel
    name: 'MLLPIntegrationChannel1'
    urlPattern: '/'
    allow: [ 'tcp' ]
    type: 'tcp'
    tcpPort: 4005
    tcpHost: 'localhost'
    routes: [
      name: 'mllp route'
      host: 'localhost'
      port: 6004
      type: 'mllp'
      primary: true
    ]

  secureClient = new Client
