@Test
public void testFlush() throws IOException {

	AtomicBoolean flushCalled = new AtomicBoolean();
	UnsyncFilterOutputStream unsyncFilterOutputStream =
		new UnsyncFilterOutputStream(
			new TestOutputStream() {
				@Override
				public void flush() {
					flushCalled.set(true);
				}
			});
	unsyncFilterOutputStream.flush();
	Assert.assertTrue(flushCalled.get());
}