data.write2(i % 2 != 0);
}
assertEquals(16, data.written());
assertEquals(16, data.readable());
assertEquals(0, data.debug_GetRead());
assertEquals(16, data.debug_GetWrite());
assertEquals(Integer.valueOf("01010101", 2).byteValue(), data.debug_GetBuffer()[0]);
assertEquals(Integer.valueOf("10101010", 2).byteValue(), data.debug_GetBuffer()[1]);
} finally {