static byte[] pad(byte[] data, int bytes) {
            int newLength = data.length + bytes;
            byte[] res = new byte[newLength];
            System.arraycopy(data, 0, res, 0, data.length);
            return res;
        }
Decodes the given byte array using the current version of the test case.

@param data The data to decode.
@return The decoded routable.
documentapi/src/test/java/com/yahoo/documentapi/messagebus/protocol/MessagesTestBase.java