### Question:
TaskInfoData { public byte[] serialize() { Map<String, Object> result = new LinkedHashMap<>(2, 1); result.put("shardingContext", shardingContexts); result.put("jobConfigContext", buildJobConfigurationContext()); return SerializationUtils.serialize((LinkedHashMap) result); }  byte[] serialize();  }### Answer:
@Test public void assertSerializeSimpleJob() { TaskInfoData actual = new TaskInfoData(shardingContexts, CloudJobConfigurationBuilder.createCloudJobConfiguration("test_job")); assertSerialize((Map) SerializationUtils.deserialize(actual.serialize())); }
@Test public void assertSerializeDataflowJob() { TaskInfoData actual = new TaskInfoData(shardingContexts, CloudJobConfigurationBuilder.createDataflowCloudJobConfiguration("test_job")); assertSerialize((Map) SerializationUtils.deserialize(actual.serialize())); }
@Test public void assertSerializeScriptJob() { TaskInfoData actual = new TaskInfoData(shardingContexts, CloudJobConfigurationBuilder.createScriptCloudJobConfiguration("test_job")); assertSerialize((Map) SerializationUtils.deserialize(actual.serialize())); }