private void verifyNoSideEffects(StreamPartitionCountMonitor streamPartitionCountMonitor,
      StreamRegexMonitor streamRegexMonitor) throws IOException {
    verify(this.jobCoordinatorMetadataManager, never()).writeJobCoordinatorMetadata(any());
    verify(this.staticResourceJobCoordinator, never()).metadataResourceUtil(any());
    verify(this.startpointManager, never()).fanOut(any());
    verifyZeroInteractions(this.jobModelServingContext, this.coordinatorCommunication, streamPartitionCountMonitor,
        streamRegexMonitor, this.jobCoordinatorListener, this.diagnosticsManager);
  }
Common steps to verify when preparing workers for processing.
@param jobModel job model to be served for workers
@param metadataResourceUtil expected to be used for creating resources
@param streamPartitionCountMonitor expected to be started
@param streamRegexMonitor if not null, expected to be started
@param newMetadata if not null, expected to be written to {@link JobCoordinatorMetadataManager}
@param expectedFanOut if not null, expected to be passed to {@link StartpointManager} for fan out
samza-core/src/test/java/org/apache/samza/coordinator/staticresource/TestStaticResourceJobCoordinator.java