private void setUpDiagnosticsManager(JobModel expectedJobModel) {
    doReturn(Optional.of(this.diagnosticsManager)).when(this.staticResourceJobCoordinator)
        .buildDiagnosticsManager(JOB_NAME, JOB_ID, expectedJobModel,
            CoordinationConstants.JOB_COORDINATOR_CONTAINER_NAME, EXECUTION_ENV_CONTAINER_ID, SAMZA_EPOCH_ID,
            this.config);
  }
Set up mocks for {@link JobCoordinatorMetadataManager}.
{@code jobMetadataChanges} defines which changes should be detected by the {@link JobCoordinatorMetadataManager}
samza-core/src/test/java/org/apache/samza/coordinator/staticresource/TestStaticResourceJobCoordinator.java