public JmxCollector register() {
        return register(PrometheusRegistry.defaultRegistry);
    }
@Test
    public void testCamelLastExchangeFailureTimestamp() throws Exception {
        String rulePattern =
                "\n"
                        + "---\n"
                        + "rules:\n"
                        + "- pattern: 'org.apache.camel<context=([^,]+), type=routes,"
                        + " name=\"([^\"]+)\"><>LastExchangeFailureTimestamp'\n"
                        + "  name: org.apache.camel.LastExchangeFailureTimestamp\n"
                        + "  help: Exchanges Last Failure Timestamps\n"
                        + "  type: UNTYPED\n"
                        + "  labels:\n"
                        + "    context: \"$1\"\n"
                        + "    route: \"$2\"\n"
                        + "    type: routes";
        JmxCollector jc = new JmxCollector(rulePattern).register(prometheusRegistry);
        Double actual =
                getSampleValue(
                        "org_apache_camel_LastExchangeFailureTimestamp",
                        new String[] {"context", "route", "type"},
                        new String[] {"my-camel-context", "my-route-name", "routes"});
        assertEquals(Camel.EXPECTED_SECONDS, actual, 0);
    }