import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

import javax.inject.Inject;

import org.eclipse.microprofile.metrics.MetricID;
import org.eclipse.microprofile.metrics.MetricRegistry;
import org.jboss.shrinkwrap.api.ShrinkWrap;
import org.jboss.shrinkwrap.api.spec.JavaArchive;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;

import io.quarkus.test.QuarkusUnitTest;

public class DefaultPackageMetricsTest {

    @RegisterExtension
    static QuarkusUnitTest runner = new QuarkusUnitTest()
            .setArchiveProducer(() -> ShrinkWrap.create(JavaArchive.class)
                    .addClasses(CountedClassDefaultPackage.class));

    @Inject
    MetricRegistry metricRegistry;

    @Inject
    CountedClassDefaultPackage bean;

    @Test
    public void test() {
        MetricID id_constructor = new MetricID(CountedClassDefaultPackage.class.getName() + ".CountedClassDefaultPackage");
        assertTrue(metricRegistry.getCounters().containsKey(id_constructor));
        MetricID id_method = new MetricID(CountedClassDefaultPackage.class.getName() + ".foo");
        assertTrue(metricRegistry.getCounters().containsKey(id_method));
        bean.foo();
        assertEquals(1, metricRegistry.getCounters().get(id_method).getCount());
    }

}

@@ -343,16 +343,55 @@
 rchive;%0A
+import org.junit.jupiter.api.Disabled;%0A
 import o
@@ -517,16 +517,81 @@
 tTest;%0A%0A
+@Disabled(%22See https://github.com/quarkusio/quarkus/pull/11656%22)%0A
 public c

Disable DefaultPackageMetricsTest