@Test
public void testPutEverythingCached() {

           List<Metric> metrics = TestUtils.createRandomMetrics(myClassName, "test-scope", "test-metric", 10);
	metrics.addAll(TestUtils.createRandomMetrics(myClassName, null, null, 10));
	ElasticSearchSchemaService spyService = _initializeSpyService(_esSchemaService);
	spyService.put(metrics);
	Set<String> scopeNames = new HashSet<>();
	for(Metric m : metrics)
	{
		scopeNames.add(m.getScope());
	}
	assertEquals(metricsCreatedCount, metrics.size());
	assertEquals(scopesCreatedCount, scopeNames.size());
	spyService.put(metrics);
	initCounters();
	assertEquals(metricsCreatedCount, 0);
	assertEquals(scopesCreatedCount, 0);
}