@Test
public void testStringChunks() throws Throwable {
final TestChannel<String> testChannel = new TestChannel<String>();
final Chunks.Out<String> out = new Chunks.Out<String>(testChannel, new ArrayList<F.Callback0>());
Chunks<String> chunks = new StringChunks() {
@Override
public void onReady(Chunks.Out<String> out) {
out.write("a");
out.write("b");
out.close();
}
};
chunks.onReady(out);
testChannel.expect("a");
testChannel.expect("b");
testChannel.expectEOF();
testChannel.expectEnd();