@@ -0,0 +1,1290 @@
+package de.ronnyfriedland.nosql.mongodb.configuration;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.beans.factory.annotation.Value;%0Aimport org.springframework.boot.test.context.SpringBootTest;%0Aimport org.springframework.test.context.junit4.SpringRunner;%0A%0Aimport com.mongodb.MongoClientOptions;%0A%0A/**%0A * @author ronnyfriedland%0A */%0A@RunWith(SpringRunner.class)%0A@SpringBootTest(classes = MongoDbConfiguration.class)%0Apublic class MongoDbConfigurationTest %7B%0A%0A    @Autowired%0A    private MongoDbConfiguration subject;%0A%0A    @Value(%22$%7Bmongodb.timeout.connection%7D%22)%0A    private int connectionTimeout;%0A%0A    @Value(%22$%7Bmongodb.timeout.read%7D%22)%0A    private int readTimeout;%0A%0A    @Test%0A    public void testConnectionTimeout() throws Exception %7B%0A        MongoClientOptions instance = subject.createInstance();%0A        Assert.assertNotNull(instance);%0A        Assert.assertEquals(connectionTimeout, instance.getConnectTimeout());%0A    %7D%0A%0A    @Test%0A    public void testReadTimeout() throws Exception %7B%0A        MongoClientOptions instance = subject.createInstance();%0A        Assert.assertNotNull(instance);%0A        Assert.assertEquals(readTimeout, instance.getSocketTimeout());%0A    %7D%0A%7D%0A

add test