// test LITTLE_ENDIAN short buffer, write
buf.clear();
buf.order(ByteOrder.LITTLE_ENDIAN);
shortBuffer = buf.asShortBuffer();
assertSame(ByteOrder.LITTLE_ENDIAN, shortBuffer.order());
while (shortBuffer.remaining() > 0) {
value = (short) shortBuffer.remaining();
shortBuffer.put(value);
buf.get(bytes);
assertTrue(Arrays.equals(bytes, short2bytes(value, buf.order())));
}