diff --git a/management-api-agent-common/pom.xml b/management-api-agent-common/pom.xml
index 385da8ab..c82f03c2 100644
--- a/management-api-agent-common/pom.xml
+++ b/management-api-agent-common/pom.xml
@@ -60,6 +60,12 @@
${junit.version}
test
+
+ org.mockito
+ mockito-core
+ 5.5.0
+ test
+
io.netty
netty-all
diff --git a/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java b/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java
index 04fefe3d..51bd2a97 100644
--- a/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java
+++ b/management-api-agent-common/src/main/java/io/k8ssandra/metrics/prometheus/CassandraTasksExports.java
@@ -7,6 +7,7 @@
import com.codahale.metrics.MetricRegistry;
import com.datastax.mgmtapi.ShimLoader;
+import com.google.common.annotations.VisibleForTesting;
import com.google.common.collect.Lists;
import io.k8ssandra.metrics.builder.CassandraMetricDefinition;
import io.k8ssandra.metrics.builder.CassandraMetricNameParser;
@@ -62,6 +63,12 @@ public List describe() {
return new ArrayList<>();
}
+ // Exported here to allow easier testing
+ @VisibleForTesting
+ List