@Test
    public void testRecord() throws Exception {
        Map<String, String> config = new HashMap<>();
        config.put("datasource.jndi-location", DB_JNDI_LOC);
        JdbcMetrics metrics = new JdbcMetrics(config);
        metrics.record(request(
                "2016-02-10T09:30:00Z", 300, "http://localhost:8080/test/1", "/test/1",
                "GET", "TestOrg", "TestApi", "1.0", "Gold",
                "TestOrg", "TestClient", "1.0", "12345", "user1",
                200, "OK", false, 0, null, false, null, 0, 1024));

        Thread.sleep(200);
        assertRowCount(1, "SELECT * FROM gw_requests WHERE api_org_id = ?", "TestOrg");
        metrics.stop();
    }
Test method for {@link io.apiman.gateway.engine.jdbc.JdbcMetrics#record(io.apiman.gateway.engine.metrics.RequestMetric)}.
gateway/engine/jdbc/src/test/java/io/apiman/gateway/engine/jdbc/JdbcMetricsTest.java