@Test
public void test_to_string_one_boolean_field() {

    class BooleanStatus { boolean field = true;}
    assertThat(new StatusMapper("metric_name", new BooleanStatus()).toString()).contains("" +
            "# HELP datashare The datashare resources status\n" +
            "# TYPE metric_name gauge\n" +
            "metric_name{status=\"OK\",resource=\"field\"} 1 1593531060000\n");
}