StateVersionTracker { int getCurrentVersion() { return this.currentVersion; } StateVersionTracker(double minMergeCompletionRatio); ClusterState getVersionedClusterState(); ClusterStatsAggregator getAggregatedClusterStats(); ClusterStateBundle getVersionedClusterStateBundle(); void updateLatestCandidateStateBundle(final ClusterStateBundle candidateBundle); AnnotatedClusterState getLatestCandidateState(); List<ClusterStateHistoryEntry> getClusterStateHistory();  }
@Test public void version_is_1_upon_construction() { final StateVersionTracker versionTracker = createWithMockedMetrics(); assertThat(versionTracker.getCurrentVersion(), equalTo(1)); }