Fix BufferTest.testAccess

Commit b327df0b7d83f079856304830ff4da92b4a5ea1f fixed three
tests but broke BufferTest.testAccess. This fixes all of them.

This ordering of state / argument checks appears consistent
with the checks in DirectByteBuffer for other, similar methods
such as putShort:
1) this.isAccessible
2) this.isReadOnly
3) Argument validity checks

Change-Id: I4e93129ae0f3008ee4894f840d69ae71586b9f07
1 file changed