checkStatus(h, buf, "limit", 10, 4, true, 2, 2);
// mark should be discarded if new limit is smaller than mark
// and position should be set to new limit
buf = factory.newInstance();
buf.position(5);
buf.mark();
buf.position(6);
buf.limit(4);
checkStatus(h, buf, "limit", 10, 4, false, 0, 4);
try