@Test
public void testClose() throws IOException {

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