@Test
public void testFlush() throws IOException {

	StringWriter stringWriter = new StringWriter();
	UnsyncBufferedWriter unsyncBufferedWriter = new UnsyncBufferedWriter(
		stringWriter, 4);
	unsyncBufferedWriter.write("test");
	unsyncBufferedWriter.flush();
	Assert.assertEquals("test", stringWriter.toString());
	unsyncBufferedWriter.flush();
	Assert.assertEquals("test", stringWriter.toString());
}