h.check(buf.compact(), buf, "compact() return value");
h.check(buf.position(), 4, "compact()/position");
h.check(buf.limit(), size, "compact()/limit");
try
{
buf.reset();
h.check(false, "mark: mark not invalidated");
}
catch(InvalidMarkException ime)
{
h.check(true, "mark: invalidated mark");