buffer.put( byteValue );
buffer.putInt( intValue );
buffer.putLong( longValue );
buffer.done();
ReadableByteChannel reader = new BlockLogReader( wrappedBuffer );
ByteBuffer verificationBuffer = ByteBuffer.wrap( new byte[1] );
reader.read( verificationBuffer );
verificationBuffer.flip();
assertEquals( byteValue, verificationBuffer.get() );
verificationBuffer = ByteBuffer.wrap( new byte[4] );
reader.read( verificationBuffer );
verificationBuffer.flip();
assertEquals( intValue, verificationBuffer.getInt() );
verificationBuffer = ByteBuffer.wrap( new byte[8] );
reader.read( verificationBuffer );
verificationBuffer.flip();
assertEquals( longValue, verificationBuffer.getLong() );
}