@Test
public void testWriteTo() throws IOException {

	UnsyncByteArrayOutputStream unsyncByteArrayOutputStream =
		new UnsyncByteArrayOutputStream();
	unsyncByteArrayOutputStream.write(_BUFFER);
	ByteArrayOutputStream byteArrayOutputStream =
		new ByteArrayOutputStream();
	unsyncByteArrayOutputStream.writeTo(byteArrayOutputStream);
	Assert.assertTrue(
		Arrays.equals(_BUFFER, byteArrayOutputStream.toByteArray()));
}