@Before
public void setup() throws IOException {
esSetup = new EsSetup();
esSetup.execute(EsSetup.deleteAll());
esSetup.execute(EsSetup.createIndex(ElasticIO.INDEX_NAME).withMapping("metrics", EsSetup.fromClassPath("metrics_mapping.json")));
elasticIO = new ElasticIO(esSetup.client());
elasticIO.insertDiscovery(createTestMetrics(TENANT_A));
elasticIO.insertDiscovery(createTestMetrics(TENANT_B));
elasticIO.insertDiscovery(createTestMetricsFromInterface(TENANT_C));