public class UnicodeWriterTest {
@Test
public void test() throws IOException {
File file = new File("target/unicodeWriterTest.txt");
Writer writer = new UnicodeWriter(file, "UTF-8");
writer.write("Hello");
writer.close();
FileInputStream is = new FileInputStream(file);
byte[] bytes = new byte[100];
assertEquals(8, is.read(bytes));