@Test
public void test_to_string_two_fields() {

    class BooleanStatus { Boolean field1 = true;Integer field2 = 3; }
    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=\"field1\"} 1 1593531060000\n" +
            "metric_name{resource=\"field2\"} 3 1593531060000\n");
}