@Test
public void testAppend() throws Exception {

	StringWriter stringWriter = new StringWriter();
	UnsyncPrintWriter unsyncPrintWriter = new UnsyncPrintWriter(
		stringWriter);
	unsyncPrintWriter.append('A');
	Assert.assertEquals("A", stringWriter.toString());
	unsyncPrintWriter.append(null);
	Assert.assertEquals("Anull", stringWriter.toString());
	unsyncPrintWriter.append("B");
	Assert.assertEquals("AnullB", stringWriter.toString());
	unsyncPrintWriter.append(null, 0, 4);
	Assert.assertEquals("AnullBnull", stringWriter.toString());
	unsyncPrintWriter.append("C", 0, 1);
	Assert.assertEquals("AnullBnullC", stringWriter.toString());
}