### Question:
SyncController { public boolean isSyncActive() { return currentSync.map(InProgressSync::isActive).orElse(false); } SyncController(
      final EventThread eventThread,
      final Executor subscriberExecutor,
      final RecentChainData recentChainData,
      final ChainSelector finalizedTargetChainSelector,
      final ChainSelector nonfinalizedTargetChainSelector,
      final Sync sync); void onTargetChainsUpdated(); boolean isSyncActive(); SyncingStatus getSyncStatus(); long subscribeToSyncChanges(final SyncSubscriber subscriber); void unsubscribeFromSyncChanges(final long subscriberId);  }### Answer:
@Test void shouldNotBeSyncingWhenSyncCompletes() { final SafeFuture<SyncResult> syncResult = startFinalizedSync(); assertThat(syncController.isSyncActive()).isTrue(); syncResult.complete(SyncResult.COMPLETE); assertNotSyncing(); }