1. A method of simulating a trunk gateway for use in testing a telecommunications switch, the method comprising the steps of: receiving a message intended for a trunk gateway from the telecommunications switch; creating a message handler in a thread; parsing the received message; generating a response message in accordance with the parsed received message; transmitting the response message to the telecommunications switch.