public JmxCollector register() {
        return register(PrometheusRegistry.defaultRegistry);
    }
@Test(expected = IllegalStateException.class)
    public void testDelayedStartNotReady() throws Exception {
        JmxCollector jc =
                new JmxCollector("---\nstartDelaySeconds: 1").register(prometheusRegistry);
        assertNull(getSampleValue("boolean_Test_True", new String[] {}, new String[] {}));
        fail();
    }