A side effect of this call is to remove all the dependencies from the tracker.
143144145146147148149150151152153
DependencyTracker tracker = new DependencyTrackerImpl(); tracker.addDependency(dependency1Mock); tracker.addDependency(dependency2Mock); Dependency aggregate = tracker.extractDependency(); Cacheability cacheability = aggregate.getCacheability(); assertEquals(Cacheability.UNCACHEABLE, cacheability); Period timeToLive = aggregate.getTimeToLive();