@Test
public void testAvailable() throws IOException {

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