@Test
public void shouldRecordDockerOperation() {

  String operation = "start";
  String status = "success";
  when(registry.getOrAdd(DOCKER_DURATION.tagged("operation", operation, "status", status), HISTOGRAM)).thenReturn(histogram);
  when(registry.meter(DOCKER_RATE.tagged("operation", operation, "status", status))).thenReturn(meter);
  stats.recordDockerOperation(operation, 1000L, status);
  verify(histogram).update(1000L);
  verify(meter).mark();
}