GatewayServer server = new GatewayServer()
{
@Override
protected Gateway createGateway()
{
StandardGateway gateway = new StandardGateway()
{
@Override
public ExternalRequest newExternalRequest(HttpServletRequest httpRequest, HttpServletResponse httpResponse) throws IOException
{
return new SlowToSuspendExternalRequest(super.newExternalRequest(httpRequest, httpResponse), respondLatch, suspendLatch, suspended);