diff --git a/persistence-modules/pom.xml b/persistence-modules/pom.xml
index 0b39b9ef16..bff23cffc1 100644
--- a/persistence-modules/pom.xml
+++ b/persistence-modules/pom.xml
@@ -64,6 +64,7 @@
spring-boot-persistence-h2
spring-boot-persistence-mongodb
spring-boot-persistence-mongodb-2
+ spring-boot-persistence-mongodb-3
spring-data-arangodb
spring-data-cassandra
spring-data-cassandra-test
@@ -115,4 +116,4 @@
1.16.3
-
\ No newline at end of file
+
diff --git a/persistence-modules/spring-boot-persistence-mongodb-2/README.md b/persistence-modules/spring-boot-persistence-mongodb-2/README.md
index a050de8f47..f62fef1a3e 100644
--- a/persistence-modules/spring-boot-persistence-mongodb-2/README.md
+++ b/persistence-modules/spring-boot-persistence-mongodb-2/README.md
@@ -7,4 +7,4 @@
- [Count Documents Using Spring Data MongoDB Repository](https://www.baeldung.com/spring-data-mongodb-count)
- [Spring Data MongoDB – Configure Connection](https://www.baeldung.com/spring-data-mongodb-connection)
- [Connect to Multiple Databases Using Spring Data MongoDB](https://www.baeldung.com/mongodb-multiple-databases-spring-data)
-- More articles: [[<--prev]](../spring-boot-persistence-mongodb)
+- More articles: [[<--prev]](../spring-boot-persistence-mongodb) [[next-->]](../spring-boot-persistence-mongodb-3)
diff --git a/persistence-modules/spring-boot-persistence-mongodb-3/README.md b/persistence-modules/spring-boot-persistence-mongodb-3/README.md
new file mode 100644
index 0000000000..853ce16054
--- /dev/null
+++ b/persistence-modules/spring-boot-persistence-mongodb-3/README.md
@@ -0,0 +1,3 @@
+# Relevant Articles
+
+- More articles: [[<--prev]](../spring-boot-persistence-mongodb-2)
diff --git a/persistence-modules/spring-boot-persistence-mongodb-3/pom.xml b/persistence-modules/spring-boot-persistence-mongodb-3/pom.xml
new file mode 100644
index 0000000000..efb988d0a0
--- /dev/null
+++ b/persistence-modules/spring-boot-persistence-mongodb-3/pom.xml
@@ -0,0 +1,34 @@
+
+
+ 4.0.0
+ spring-boot-persistence-mongodb-3
+ spring-boot-persistence-mongodb-3
+ war
+ This is simple boot application for Spring boot persistence mongodb
+
+
+ com.baeldung
+ parent-boot-2
+ 0.0.1-SNAPSHOT
+ ../../parent-boot-2
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-starter-data-mongodb
+
+
+ de.flapdoodle.embed
+ de.flapdoodle.embed.mongo
+ test
+
+
+
+
diff --git a/persistence-modules/spring-boot-persistence-mongodb-3/src/main/java/com/baeldung/boot/hashmap/SpringBootHashMapApplication.java b/persistence-modules/spring-boot-persistence-mongodb-3/src/main/java/com/baeldung/boot/hashmap/SpringBootHashMapApplication.java
new file mode 100644
index 0000000000..ef1ad8a7b5
--- /dev/null
+++ b/persistence-modules/spring-boot-persistence-mongodb-3/src/main/java/com/baeldung/boot/hashmap/SpringBootHashMapApplication.java
@@ -0,0 +1,12 @@
+package com.baeldung.boot.hashmap;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class SpringBootHashMapApplication {
+
+ public static void main(String... args) {
+ SpringApplication.run(SpringBootHashMapApplication.class, args);
+ }
+}
diff --git a/persistence-modules/spring-boot-persistence-mongodb-3/src/main/resources/application.properties b/persistence-modules/spring-boot-persistence-mongodb-3/src/main/resources/application.properties
new file mode 100644
index 0000000000..8309c4461f
--- /dev/null
+++ b/persistence-modules/spring-boot-persistence-mongodb-3/src/main/resources/application.properties
@@ -0,0 +1 @@
+spring.application.name=spring-boot-persistence-mongodb-3
diff --git a/persistence-modules/spring-boot-persistence-mongodb-3/src/test/java/com/baeldung/boot/hashmap/MongoDbHashMapIntegrationTest.java b/persistence-modules/spring-boot-persistence-mongodb-3/src/test/java/com/baeldung/boot/hashmap/MongoDbHashMapIntegrationTest.java
new file mode 100644
index 0000000000..bbf425f277
--- /dev/null
+++ b/persistence-modules/spring-boot-persistence-mongodb-3/src/test/java/com/baeldung/boot/hashmap/MongoDbHashMapIntegrationTest.java
@@ -0,0 +1,120 @@
+package com.baeldung.boot.hashmap;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
+import org.bson.Document;
+import org.junit.jupiter.api.BeforeAll;
+import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.data.mongodb.core.MongoTemplate;
+import org.springframework.test.annotation.DirtiesContext;
+import org.springframework.test.context.TestPropertySource;
+
+import com.mongodb.BasicDBObject;
+
+@SpringBootTest
+@DirtiesContext
+@TestPropertySource("/embedded.properties")
+class MongoDbHashMapIntegrationTest {
+
+ private static final Map MAP = new HashMap<>();
+ private static final Set