<dependency>
             <groupId>org.onap.aai.aai-common</groupId>
             <artifactId>aai-core</artifactId>
+            <version>1.6.11</version>
             <exclusions>
                 <exclusion>
                     <groupId>com.sun.jersey</groupId>
 
 import org.junit.Before;
 import org.junit.Rule;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.AAIGraph;
 import org.onap.aai.exceptions.AAIException;
 import static org.hamcrest.Matchers.containsString;
 import static org.junit.Assert.*;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class DataSnapshotTest extends AAISetup {
 
     private GraphTraversalSource g;
 
         FileUtils.copyFile(inputFile, outputFile);
     }
-}
\ No newline at end of file
+}
 
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import org.onap.aai.db.props.AAIProperties;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class EdgeMigratorTest extends AAISetup {
     
     public static class EdgeMigratorImpl extends EdgeMigrator {
         assertEquals(0, edgeMigrator.edgeMissingParentProperty.size());
         assertEquals(1, edgeMigrator.edgeMultiplicityExceptionCtr.values().stream().mapToInt(Number::intValue).sum());
     }
-}
\ No newline at end of file
+}
 
 import org.javatuples.Pair;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import org.onap.aai.edges.EdgeIngestor;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class EdgeSwingMigratorTest extends AAISetup {
        
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.junit.Before;
 import org.junit.Ignore;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.AAIGraph;
 import java.io.ByteArrayOutputStream;
 import static org.hamcrest.MatcherAssert.assertThat;
 import static org.hamcrest.core.StringContains.containsString;
 
-
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrationControllerInternalTest extends AAISetup {
 
     private static final Logger logger = LoggerFactory.getLogger(MigrationControllerInternalTest.class);
 
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import org.onap.aai.introspection.Loader;
 import static org.junit.Assert.assertEquals;
 import static org.mockito.Mockito.*;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class RebuildAllEdgesTest extends AAISetup {
 
        private static final ModelType introspectorFactoryType = ModelType.MOXY;
 
 }
 
- 
\ No newline at end of file
+ 
 
 import org.janusgraph.core.JanusGraphTransaction;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.edges.EdgeIngestor;
 import org.onap.aai.introspection.Loader;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class ValueMigratorTest extends AAISetup{
 
     public static class SampleValueMigrator extends ValueMigrator {
 
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.db.props.AAIProperties;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.janusgraph.core.JanusGraph;
 import org.janusgraph.core.JanusGraphTransaction;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class ALTSLicenseEntitlementMigrationTest extends AAISetup {
     private final static ModelType introspectorFactoryType = ModelType.MOXY;
     private final static QueryStyle queryStyle = QueryStyle.TRAVERSAL;
 
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class ContainmentDeleteOtherVPropertyMigrationTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrateDataFromASDCToConfigurationTest extends AAISetup {
 
     private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import org.janusgraph.core.JanusGraph;
 import org.janusgraph.core.JanusGraphTransaction;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrateHUBEvcInventoryTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.ReadOnlyStrategy;
 import org.javatuples.Pair;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrateINVPhysicalInventoryMethodTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.ReadOnlyStrategy;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import static org.junit.Assert.*;
 import static org.mockito.Mockito.spy;
 import static org.mockito.Mockito.when;
-
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrateINVPhysicalInventoryTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.ReadOnlyStrategy;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import org.janusgraph.core.JanusGraph;
 import org.janusgraph.core.JanusGraphTransaction;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigrateInvEvcInventoryTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.ReadOnlyStrategy;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.onap.aai.AAISetup;
 import org.onap.aai.dbmap.DBConnectionType;
 import org.onap.aai.introspection.Loader;
 import org.onap.aai.serialization.engines.JanusGraphDBEngine;
 import org.onap.aai.serialization.engines.TransactionalGraphEngine;
 
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class MigratePATHEvcInventoryTest extends AAISetup {
 
        private final static ModelType introspectorFactoryType = ModelType.MOXY;
 
 import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversalSource;\r
 import org.junit.Before;\r
 import org.junit.Test;\r
+import org.springframework.test.annotation.DirtiesContext;\r
+\r
 import org.onap.aai.AAISetup;\r
 import org.onap.aai.dbmap.DBConnectionType;\r
 import org.onap.aai.introspection.Loader;\r
 import static org.junit.Assert.assertTrue;\r
 import static org.junit.Assert.assertEquals;\r
 \r
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)\r
 public class MigrateInMaintDefaultToFalseTest extends\r
                AAISetup {\r
        protected static final String VNF_NODE_TYPE = "generic-vnf";\r
         assertTrue("Value of nos-server shouldn't be updated since in-maint already exists",\r
                 g.V().has("aai-node-type", "nos-server").has("nos-server-id", "nos-server3").has("in-maint", false).hasNext());\r
     }\r
-}
\ No newline at end of file
+}\r
 
 import org.janusgraph.core.JanusGraphFactory;
 import org.janusgraph.core.JanusGraphTransaction;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.junit.runners.MethodSorters;
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import static org.mockito.Mockito.*;
 
 @FixMethodOrder(MethodSorters.NAME_ASCENDING)
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class SendDeleteMigrationNotificationsTest extends AAISetup {
 
        private final static String FILE = "./test.txt";
 
        }
 
-}
\ No newline at end of file
+}
 
 import org.janusgraph.core.JanusGraphFactory;
 import org.janusgraph.core.JanusGraphTransaction;
 import org.junit.*;
+import org.springframework.test.annotation.DirtiesContext;
+
 import org.junit.runners.MethodSorters;
 import org.mockito.Mockito;
 import org.onap.aai.AAISetup;
 import static org.mockito.Mockito.*;
 
 @FixMethodOrder(MethodSorters.NAME_ASCENDING)
+@DirtiesContext(classMode = DirtiesContext.ClassMode.BEFORE_CLASS)
 public class SendMigrationNotificationsTest extends AAISetup {
 
        private final static String FILE = "./test.txt";
 
        }
 
-}
\ No newline at end of file
+}