*/
@Before
public void setUp() {
txManager = Mockito.mock(TxManager.class);
GraphDatabaseAPI graphDatabase = Mockito.mock(GraphDatabaseAPI.class);
DependencyResolver dependencyResolver = Mockito.mock(DependencyResolver.class);
Mockito.stub(graphDatabase.getDependencyResolver()).toReturn(dependencyResolver);
Mockito.stub(dependencyResolver.resolveDependency(TxManager.class)).toReturn(txManager);
timingStrategy = AdaptiveTimingStrategy
.defaultConfiguration()
.withBusyThreshold(10)
.withDefaultDelayMillis(1000L)