### Question:
ContentWriters { @Deprecated(since = "2.0.0") public static Function<CharSequence, Publisher<DataChunk>> charSequenceWriter(Charset charset) { return (cs) -> writeCharSequence(cs, charset); } private  ContentWriters(); static Single<DataChunk> writeBytes(byte[] bytes, boolean copy); static Single<DataChunk> writeCharSequence(CharSequence cs, Charset charset); static Single<DataChunk> writeCharBuffer(CharBuffer buffer, Charset charset); static Single<DataChunk> writeStackTrace(Throwable throwable, Charset charset); @Deprecated(since = "2.0.0") static Function<byte[], Publisher<DataChunk>> byteArrayWriter(boolean copy); @Deprecated(since = "2.0.0") static Function<CharSequence, Publisher<DataChunk>> charSequenceWriter(Charset charset); @Deprecated(since = "2.0.0") static Function<CharBuffer, Publisher<DataChunk>> charBufferWriter(Charset charset); @Deprecated(since = "2.0.0") static Function<ReadableByteChannel, Publisher<DataChunk>> byteChannelWriter(RetrySchema retrySchema); @Deprecated(since = "2.0.0") static Function<ReadableByteChannel, Publisher<DataChunk>> byteChannelWriter();  }### Answer:
@Test public void charSequenceWriter() throws Exception { String data = "abc"; Publisher<DataChunk> publisher = ContentWriters.charSequenceWriter(StandardCharsets.UTF_8).apply(data); byte[] result = ContentReaders.readBytes(publisher).get(5, TimeUnit.SECONDS); assertThat(new String(result, StandardCharsets.UTF_8), is(data)); }