CharArrayWriter w2 = new CharArrayWriter();
Writer tee = new TeeWriter(w1, w2);
tee.write(DATA);
tee.flush();
assertArrayEquals(DATA, w1.toCharArray());
assertArrayEquals(DATA, w2.toCharArray());
w1 = new CharArrayWriter();
w2 = new CharArrayWriter();
tee = new TeeWriter(w1, w2);
tee.write(DATA, 0, 6);