Testing the API Gateway in a local environment

Is there any way to test an API Gateway implementation? It would be ideal if there was an emulator for setting things up in a local environment.