protected String resolveEndpoint(String endpoint) {
        if ("api".equals(endpoint)) {
            return gatewayServer.getApiEndpoint();
        } else if ("gateway".equals(endpoint)) {
            return gatewayServer.getGatewayEndpoint();
        } else {
            return TestUtil.doPropertyReplacement(endpoint);
        }
    }
Resolves the logical endpoint into a real endpoint provided by the {@link IGatewayTestServer}.
@param endpoint
gateway/test/src/test/java/io/apiman/gateway/test/junit/GatewayRestTester.java