private static void loadTestData(RestHighLevelClient client) throws Exception {
        RestClient restClient = client.getLowLevelClient();
        Request bulkRequest = new Request("POST", "/_bulk");
        InputStream is = EsMetricsAccessorTest.class.getResourceAsStream("bulk-metrics-data.txt");
        InputStreamEntity isEntity = new InputStreamEntity(is, ContentType.APPLICATION_JSON);

        bulkRequest.setEntity(isEntity);
        restClient.performRequest(bulkRequest);
    }
Tests the elasticsearch metrics accessor.

@author eric.wittmann@redhat.com
manager/test/api/src/test/java/io/apiman/manager/test/es/EsMetricsAccessorTest.java