JobExecutionMultipleShardingContext extends AbstractJobExecutionShardingContext { @Override public String toString() { return String.format( "jobName: %s, shardingTotalCount: %s, shardingItems: %s, shardingItemParameters: %s, jobParameter: %s", getJobName(), getShardingTotalCount(), shardingItems, shardingItemParameters, getJobParameter() ); }  JobExecutionSingleShardingContext createJobExecutionSingleShardingContext(final int item); @Override String toString();  }
@Test public void assertToString() { assertThat(createShardingContext().toString(), is("jobName: testJob, shardingTotalCount: 10, shardingItems: [0, 1], shardingItemParameters: {0=param0}, jobParameter: null")); }