@Override
    protected <T> void mergeFrom(byte[] data, int offset, int length,
            T message, Schema<T> schema) throws IOException
    {
        try
        {
            schema.mergeFrom(new KvpByteArrayInput(data, offset, length, numeric),
                    message);
        }
        catch (ArrayIndexOutOfBoundsException e)
        {
            throw new ProtostuffException("Truncated message.", e);
        }
    }
Base class for the kvp io tests.

@author David Yu
@created Dec 4, 2010
protostuff-kvp/src/test/java/io/protostuff/AbstractKvpTest.java