assertEquals(buf.order(), readonly.order());
assertEquals(buf.capacity(), readonly.capacity());
assertContentEquals(buf, readonly);
// readonly's position, mark, and limit should be independent to buf
readonly.reset();
assertEquals(readonly.position(), originalPosition);
readonly.clear();
assertEquals(buf.position(), buf.limit());
buf.reset();
assertEquals(buf.position(), originalPosition);