@Test
public void test_to_string_with_platform() {

    class StringStatus { String field = "value";}
    assertThat(new StatusMapper("metric_name", new StringStatus(), "platform").toString()).contains("" +
            "# HELP datashare The datashare resources status\n" +
            "# TYPE metric_name gauge\n" +
            "metric_name{environment=\"platform\",resource=\"field\"} Nan 1593531060000\n");
}