private JobModel setupJobModel(Config config) {
    JobModel jobModel = mock(JobModel.class);
    when(jobModel.getContainers()).thenReturn(CONTAINERS);
    when(jobModel.getConfig()).thenReturn(config);
    when(this.jobModelHelper.newJobModel(this.config, this.changelogPartitionMapping)).thenReturn(jobModel);
    return jobModel;
  }
Set up {@link JobModel} and {@link JobModelHelper} to return job model.
samza-core/src/test/java/org/apache/samza/coordinator/staticresource/TestStaticResourceJobCoordinator.java