Added new test for read(ByteBuffer byteBuffer).