diff --git a/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/pom.xml b/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/pom.xml
index d23f1863cd6..35621201eb8 100644
--- a/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/pom.xml
+++ b/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/pom.xml
@@ -111,6 +111,10 @@
org.apache.maven.plugins
maven-surefire-plugin
+
+ --add-opens=java.xml/jdk.xml.internal=ALL-UNNAMED
+ --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED
+
src/test/resources/testng.xml
@@ -118,6 +122,9 @@
${basedir}/target/coverage-reports/jacoco-unit.exec
file:src/test/resources/log4j.properties
+
+ org.ops4j.pax.logging
+
@@ -175,7 +182,7 @@
org.powermock
- powermock-api-mockito
+ powermock-api-mockito2
test
diff --git a/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/src/test/resources/data-source-config.xml b/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/src/test/resources/data-source-config.xml
index 27b6dfeaeb8..533fd829598 100644
--- a/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/src/test/resources/data-source-config.xml
+++ b/components/certificate-mgt/io.entgra.device.mgt.core.certificate.mgt.core/src/test/resources/data-source-config.xml
@@ -18,7 +18,7 @@
-->
- jdbc:h2:mem:cdm-test-db;DB_CLOSE_ON_EXIT=FALSE;MVCC=true
+ jdbc:h2:mem:cdm-test-db;DB_CLOSE_ON_EXIT=FALSE
org.h2.Driver
wso2carbon
wso2carbon