StateVersionTracker { boolean hasReceivedNewVersionFromZooKeeper() { return currentVersion <= lastZooKeeperVersion; } StateVersionTracker(double minMergeCompletionRatio); ClusterState getVersionedClusterState(); ClusterStatsAggregator getAggregatedClusterStats(); ClusterStateBundle getVersionedClusterStateBundle(); void updateLatestCandidateStateBundle(final ClusterStateBundle candidateBundle); AnnotatedClusterState getLatestCandidateState(); List<ClusterStateHistoryEntry> getClusterStateHistory();  }
@Test public void new_version_from_zk_predicate_initially_false() { final StateVersionTracker versionTracker = createWithMockedMetrics(); assertThat(versionTracker.hasReceivedNewVersionFromZooKeeper(), is(false)); }