question: public void test_atomicAppendFullBlock ( ) throws IOException { final String id = "test" ; final int version = 0 ; Random r = new Random ( ) ; final byte [ ] expected = new byte [ BLOCK_SIZE ] ; r . nextBytes ( expected ) ; final long block0 = repo . appendBlock ( id , version , expected , 0 , expected . length ) ; assertEquals ( "block#" , 0L , block0 ) ; assertEquals ( "blockCount" , 1 , repo . getBlockCount ( id , version ) ) ; assertEquals ( "readBlock" , expected , repo . readBlock ( id , version , block0 ) ) ; assertEquals ( "inputStream" , expected , read ( repo . inputStream ( id , version ) ) ) ; }
target:  Atomic append of a full block.