@Test
public void testNamingWhitespaces() {

  PrometheusMetricsSink sink = new PrometheusMetricsSink();
  String recordName = "JvmMetrics";
  String metricName = "GcCount" + "G1 Old Generation";
  Assert.assertEquals(
      "jvm_metrics_gc_count_g1_old_generation",
      sink.prometheusName(recordName, metricName));
}