use of org.cactoos.iterable.IterableOfBytes in project cactoos by yegor256.
the class BytesOfTest method asBytesFromIterable.
@Test
void asBytesFromIterable() throws Exception {
final Text text = new TextOf("Good bye");
new Assertion<>("Must convert iterable into bytes", new BytesOf(new IterableOfBytes(text)).asBytes(), new IsEqual<>(new BytesOf(text).asBytes())).affirm();
}