*/
public class TestJsonSerialization {
@Test
public void serializeJob() throws Exception {
assertSerializeRoundTrip(new Job("foo"));
assertSerializeRoundTrip(new Job("TestAction",
new Object[] { 1, 2.3, true, "test", Arrays.asList("inner", 4.5) }));
assertSerializeRoundTrip(new Job("TestAction",
map(entry("foo", "bar"), entry("baz", 123), entry("key3", Arrays.asList("inner2", 6.7, false)))));
assertSerializeRoundTrip(new Job("TestAction",
new Object[] { 1, 2.3, true, "test", Arrays.asList("inner", 4.5) },
map(entry("foo", "bar"), entry("baz", 123), entry("key3", Arrays.asList("inner2", 6.7, false)))));
}