@Test
public void testMark() throws Exception {
byte[] bytes = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
UnsafeByteArrayInputStream ubais = new UnsafeByteArrayInputStream(bytes);
assertTrue(ubais.markSupported());
int markIndex = 3;
// Advance the index
for (int i = 0; i < markIndex; i++) {
ubais.read();
}