@Test
public void shouldRecordResourceDemanded() {

  String resource = "resource";
  when(registry.getOrAdd(RESOURCE_DEMANDED.tagged("resource", resource), HISTOGRAM)).thenReturn(histogram);
  stats.recordResourceDemanded(resource, 17);
  verify(histogram).update(17L);
}