Stream stream = new Stream(sampleBytes());
stream.writeBit(1);
assertEquals(0, stream.skipBytes(0));
assertEquals(1, stream.skipBytes(1));
assertEquals(sampleBytes()[1], (byte )stream.read());
assertEquals(7, stream.skipBytes(10));
assertEquals(0, stream.skipBytes(0));
assertEquals(1, stream.getData().readable());
stream.readBit();
assertEquals(-1, stream.skipBytes(5));
} finally {