use of org.cactoos.iterator.IteratorOfBytes in project cactoos by yegor256.
the class BytesOfTest method asBytesFromIterator.
@Test
void asBytesFromIterator() throws Exception {
final Text text = new TextOf("Good bye!");
new Assertion<>("Can't convert iterator into bytes", new BytesOf(new IteratorOfBytes(text)).asBytes(), new IsEqual<>(new BytesOf(text).asBytes())).affirm();
}