public JmxCollector register() {
        return register(PrometheusRegistry.defaultRegistry);
    }
@Test
    public void testBooleanValues() throws Exception {
        JmxCollector jc = new JmxCollector("---").register(prometheusRegistry);

        assertEquals(
                1.0, getSampleValue("boolean_Test_True", new String[] {}, new String[] {}), .001);
        assertEquals(
                0.0, getSampleValue("boolean_Test_False", new String[] {}, new String[] {}), .001);
    }