@Test
public void testSkip() throws IOException {

	// byte[]
	ByteArrayFileInputStream byteArrayFileInputStream =
		new ByteArrayFileInputStream(_testFile, 2048);
	// Negative length
	Assert.assertEquals(0, byteArrayFileInputStream.skip(-1));
	int count = 1024 / 17;
	for (int i = 0; i < count; i++) {
		Assert.assertEquals(17, byteArrayFileInputStream.skip(17));
	}
	Assert.assertEquals(1024 % 17, byteArrayFileInputStream.skip(17));
	Assert.assertEquals(0, byteArrayFileInputStream.skip(17));
	byteArrayFileInputStream.close();
	// FileInputStream
	byteArrayFileInputStream = new ByteArrayFileInputStream(_testFile, 512);
	// 0 length
	Assert.assertEquals(0, byteArrayFileInputStream.skip(0));
	for (int i = 0; i < 1024; i++) {
		Assert.assertEquals(17, byteArrayFileInputStream.skip(17));
	}
	// Skip EOF
	byteArrayFileInputStream.skip(17);
	Assert.assertEquals(-1, byteArrayFileInputStream.read());
	byteArrayFileInputStream.close();
}