@Test
public void testNamingPipeline() {

  PrometheusMetricsSink sink = new PrometheusMetricsSink();
  String recordName = "SCMPipelineMetrics";
  String metricName = "NumBlocksAllocated-"
      + "RATIS-THREE-47659e3d-40c9-43b3-9792-4982fc279aba";
  Assert.assertEquals(
      "scm_pipeline_metrics_"
          + "num_blocks_allocated_"
          + "ratis_three_47659e3d_40c9_43b3_9792_4982fc279aba",
      sink.prometheusName(recordName, metricName));
}