@Override
        public void mergeFrom(Input input, PojoWithBiggerByteArray message) throws IOException
        {
            for (int number = input.readFieldNumber(this);; number = input.readFieldNumber(this))
            {
                switch (number)
                {
                    case 0:
                        return;
                    case 1:
                        message.id = input.readInt32();
                        break;
                    case 2:
                        message.b = input.readByteArray();
                        break;
                    case 3:
                        message.ts = input.readInt64();
                        break;
                    default:
                        input.handleUnknownField(number, this);
                }
            }
        }
A test for deserializing byte array fields that exceed the input's buffer size.

@author David Yu
@created Jun 21, 2011
protostuff-kvp/src/test/java/io/protostuff/KvpByteArrayTest.java