question: public void test_checksum03 ( ) { byte [ ] data = new byte [ 100 ] ; r . nextBytes ( data ) ; ByteBuffer buf = ByteBuffer . wrap ( data ) ; buf . limit ( 20 ) ; buf . position ( 9 ) ; buf . mark ( ) ; buf . position ( 12 ) ; chk . checksum ( buf , 0 , data . length ) ; assertEquals ( 20 , buf . limit ( ) ) ; assertEquals ( 12 , buf . position ( ) ) ; buf . reset ( ) ; assertEquals ( 9 , buf . position ( ) ) ; }
target:  Test verifies that the mark, position and limit are unchanged by the checksum operation.