@Test
public void testCheckError() {

	UnsyncPrintWriter unsyncPrintWriter = new UnsyncPrintWriter(
		new StringWriter());
	unsyncPrintWriter.close();
	unsyncPrintWriter.println();
	Assert.assertTrue(unsyncPrintWriter.checkError());
	unsyncPrintWriter.reset(null);
	Assert.assertFalse(unsyncPrintWriter.checkError());
	unsyncPrintWriter.write(new char[0], 0, 0);
	Assert.assertTrue(unsyncPrintWriter.checkError());
	unsyncPrintWriter.reset(null);
	Assert.assertFalse(unsyncPrintWriter.checkError());
	unsyncPrintWriter.write('c');
	Assert.assertTrue(unsyncPrintWriter.checkError());
	unsyncPrintWriter.reset(null);
	Assert.assertFalse(unsyncPrintWriter.checkError());
	unsyncPrintWriter.write("test");
	Assert.assertTrue(unsyncPrintWriter.checkError());
	unsyncPrintWriter.reset(null);
	Assert.assertFalse(unsyncPrintWriter.checkError());
	unsyncPrintWriter.write("test", 0, 4);
	Assert.assertTrue(unsyncPrintWriter.checkError());
	unsyncPrintWriter.reset(null);
	Assert.assertFalse(unsyncPrintWriter.checkError());
}