use of org.cactoos.io.Sticky in project cactoos by yegor256.
the class BytesOfTest method readsFromReader.
@Test
void readsFromReader() throws Exception {
final String source = "hello, друг!";
new Assertion<>("must read string through a reader", new TextOf(new Sticky(new InputOf(new BytesOf(new StringReader(source), StandardCharsets.UTF_8, // @checkstyle MagicNumberCheck (1 line)
16 << 10)))), new IsText(source)).affirm();
}