question: public void test_writeRead ( ) { final IRawStore store = getStore ( ) ; try { final int len = 100 ; final byte [ ] expected = new byte [ len ] ; r . nextBytes ( expected ) ; final ByteBuffer tmp = ByteBuffer . wrap ( expected ) ; final long addr1 = store . write ( tmp ) ; assertEquals ( len , tmp . position ( ) ) ; assertEquals ( tmp . position ( ) , tmp . limit ( ) ) ; final ByteBuffer actual = store . read ( addr1 ) ; assertEquals ( expected , actual ) ; assertEquals ( 0 , actual . position ( ) ) ; assertEquals ( expected . length , actual . limit ( ) ) ; } finally { store . destroy ( ) ; } }
target:  Test verifies that we can write and then read back a record.