@Test
public void shouldRecordResourceUsed() {

  String resource = "resource";
  when(registry.getOrAdd(RESOURCE_USED.tagged("resource", resource), HISTOGRAM)).thenReturn(histogram);
  stats.recordResourceUsed(resource, 100L);
  verify(histogram).update(100L);
}