@Test
public void testSkip() throws IOException {

    byte[] src = "HELLO MINA!".getBytes();
    ByteBuffer bb = ByteBuffer.wrap(src);
    InputStream is = new ByteBufferInputStream(bb);
    is.skip(6);
    assertEquals(5, is.available());
    assertEquals('M', is.read());
    assertEquals('I', is.read());
    assertEquals('N', is.read());
    assertEquals('A', is.read());
    is.skip((long) Integer.MAX_VALUE + 1);
    assertEquals(-1, is.read());
    is.close();
}