} catch (NullPointerException e) {
// expected
}
loadTestData2(other);
other.clear();
buf.clear();
ShortBuffer ret = buf.put(other);
assertEquals(other.position(), other.capacity());
assertEquals(buf.position(), buf.capacity());
assertContentEquals(other, buf);