@Test
public void testRead() throws IOException {

	AtomicBoolean readCalled = new AtomicBoolean();
	UnsyncFilterInputStream unsyncFilterInputStream =
		new UnsyncFilterInputStream(
			new TestInputStream() {
				@Override
				public int read() {
					readCalled.set(true);
					return -1;
				}
			});
	Assert.assertEquals(-1, unsyncFilterInputStream.read());
	Assert.assertTrue(readCalled.get());
}