private RequestMetric buildRequestMetric(String clientId, boolean error, int responseCode, String responseMessage) {
        final RequestMetric requestMetric = new RequestMetric();
        requestMetric.setClientId(clientId);
        requestMetric.setClientOrgId("clientOrgId");
        requestMetric.setClientVersion("clientVersion");
        requestMetric.setContractId("contractId");
        requestMetric.setError(error);
        requestMetric.setFailure(false);
        requestMetric.setMethod("GET");
        requestMetric.setPlanId("planId");
        requestMetric.setRequestDuration(9001);
        requestMetric.setRequestStart(new Date(1440770200));
        requestMetric.setRequestEnd(new Date(1440770844));
        requestMetric.setResource("/wibble");
        requestMetric.setResponseCode(responseCode);
        requestMetric.setResponseMessage(responseMessage);
        requestMetric.setApiDuration(1000);
        requestMetric.setApiStart(new Date(1440770233));
        requestMetric.setApiEnd(new Date(1440770822));
        requestMetric.setApiId("apiId");
        requestMetric.setApiOrgId("apiOrgId");
        requestMetric.setApiVersion("apiVersion");
        requestMetric.setUser("user");
        return requestMetric;
    }
Prometheus scrape metrics tests.

@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/prometheus/src/test/java/io/apiman/gateway/engine/prometheus/BasicMetricsTest.java