@Test
public void testWrite() {

	UnsyncByteArrayOutputStream unsyncByteArrayOutputStream =
		new UnsyncByteArrayOutputStream();
	for (int i = 0; i < _BUFFER_SIZE; i++) {
		unsyncByteArrayOutputStream.write(i);
		Assert.assertEquals(i + 1, unsyncByteArrayOutputStream.size());
	}
	Assert.assertTrue(
		Arrays.equals(_BUFFER, unsyncByteArrayOutputStream.toByteArray()));
}