### Question:
FlexBuffer { final public int get() throws IOException { checkAvail( 1 ); return buffer[index++] & 255; } FlexBuffer();  FlexBuffer( byte[] buffer );  FlexBuffer( byte[] buffer, int length );  FlexBuffer( byte[] buffer, int index, int length ); final byte[] getBuf(); final int length(); final FlexBuffer setLength( int length ); final int index(); final FlexBuffer setIndex( int index ); final int avail(); final FlexBuffer reset(); final FlexBuffer compact(); final int get(); final int get( byte[] buf ); final int get( byte[] buf, int off, int len ); final byte getByte(); final short getShort(); final int getInt(); final long getLong(); final float getFloat(); final double getDouble(); final void getFully( byte[] b ); final FlexBuffer put( int b ); final FlexBuffer put( byte[] buf ); final FlexBuffer put( byte[] buf, int off, int len ); final FlexBuffer put( FlexBuffer buf ); final FlexBuffer put( FlexBuffer buf, int len ); final void putByte( byte value ); final void putShort( short value ); final void putInt( int value ); final void putLong( long value ); final void putFloat( float value ); final void putDouble( double value ); final FlexBuffer skip( int len, boolean put ); final byte[] getAvailBytes();  }### Answer:
@Test public void get6() throws Exception { FlexBuffer buf = new FlexBuffer( new byte[] { 5, 6, 7, 8 } ); byte[] buffer = new byte[] { 11, 12, 13, 14, 15 }; buf.get( buffer, 1, 3 ); assertEquals( (byte) 11, buffer[0] ); assertEquals( (byte) 5, buffer[1] ); assertEquals( (byte) 6, buffer[2] ); assertEquals( (byte) 7, buffer[3] ); assertEquals( (byte) 15, buffer[4] ); }