### Question:
JobContext { public static JobContext from(final CloudJobConfiguration jobConfig, final ExecutionType type) { int shardingTotalCount = jobConfig.getTypeConfig().getCoreConfig().getShardingTotalCount(); List<Integer> shardingItems = new ArrayList<>(shardingTotalCount); for (int i = 0; i < shardingTotalCount; i++) { shardingItems.add(i); } return new JobContext(jobConfig, shardingItems, type); }  static JobContext from(final CloudJobConfiguration jobConfig, final ExecutionType type);  }### Answer:
@Test public void assertFrom() { CloudJobConfiguration jobConfig = CloudJobConfigurationBuilder.createCloudJobConfiguration("test_job"); JobContext actual = JobContext.from(jobConfig, ExecutionType.READY); Assert.assertThat(actual.getAssignedShardingItems().size(), Is.is(10)); for (int i = 0; i < actual.getAssignedShardingItems().size(); i++) { Assert.assertThat(actual.getAssignedShardingItems().get(i), Is.is(i)); } }