@Test
public void testSkip() throws IOException {

	long expectedSkip = 1;
	AtomicBoolean skipCalled = new AtomicBoolean();
	UnsyncFilterInputStream unsyncFilterInputStream =
		new UnsyncFilterInputStream(
			new TestInputStream() {
				@Override
				public long skip(long skip) {
					Assert.assertEquals(expectedSkip, skip);
					skipCalled.set(true);
					return 0;
				}
			});
	Assert.assertEquals(0, unsyncFilterInputStream.skip(expectedSkip));
	Assert.assertTrue(skipCalled.get());
}