<BUG>Task<Long> task1 = Task.ofType(Long.class).named("Foo", "Bar", 39).process(() -> 9999L);Task<String> task2 = Task.ofType(String.class).named("Baz", 40).in(() -> task1)</BUG><CONTEXT>final String instanceField = "from instance";final TaskContext context = TaskContext.inmem();final AwaitingConsumer<String> val = new AwaitingConsumer<>();@Testpublic void shouldJavaUtilSerialize() throws Exception {<extra_id_0>.ins(() -> singletonList(task1))</CONTEXT>
Task<Long> task1 = Task.named("Foo", "Bar", 39).ofType(Long.class)Task<String> task2 = Task.named("Baz", 40).ofType(String.class).in(() -> task1)