@Test
public void testWrite() throws IOException {

	int expectedB = 1;
	AtomicBoolean writeCalled = new AtomicBoolean();
	UnsyncFilterOutputStream unsyncFilterOutputStream =
		new UnsyncFilterOutputStream(
			new TestOutputStream() {
				@Override
				public void write(int b) {
					Assert.assertEquals(expectedB, b);
					writeCalled.set(true);
				}
			});
	unsyncFilterOutputStream.write(expectedB);
	Assert.assertTrue(writeCalled.get());
}