// Path: src/main/java/com/github/rschmitt/dynamicobject/DynamicObject.java
// static <T> Stream<T> deserializeStream(PushbackReader streamReader, Class<T> type) {
//     return EdnSerialization.deserializeStream(streamReader, type);
// }


import clojure.java.api.Clojure;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.PushbackReader;
import java.io.StringReader;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Stream;
import static com.github.rschmitt.dynamicobject.DynamicObject.deserializeStream;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
import static org.junit.jupiter.api.Assertions.*;
package com.github.rschmitt.dynamicobject;




@SuppressWarnings("rawtypes")
public class StreamingTest {
    @Test
    public void iteratorTest() {
        String edn = "{:x 1} {:x 2}";
        PushbackReader reader = new PushbackReader(new StringReader(edn));

// Path: src/main/java/com/github/rschmitt/dynamicobject/DynamicObject.java
// static <T> Stream<T> deserializeStream(PushbackReader streamReader, Class<T> type) {
//     return EdnSerialization.deserializeStream(streamReader, type);
// }


// Path: src/test/java/com/github/rschmitt/dynamicobject/StreamingTest.java
import clojure.java.api.Clojure;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.PushbackReader;
import java.io.StringReader;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Stream;
import static com.github.rschmitt.dynamicobject.DynamicObject.deserializeStream;
import static java.util.Arrays.asList;
import static java.util.stream.Collectors.toList;
import static org.junit.jupiter.api.Assertions.*;

package com.github.rschmitt.dynamicobject;




@SuppressWarnings("rawtypes")
public class StreamingTest {
    @Test
    public void iteratorTest() {
        String edn = "{:x 1} {:x 2}";
        PushbackReader reader = new PushbackReader(new StringReader(edn));

        Iterator<StreamingType> iterator = deserializeStream(reader, StreamingType.class).iterator();