public void decode() throws Exception
{
RiakMessageCodec codec = new RiakMessageCodec();
List<Object> outList = new ArrayList<Object>();
Whitebox.invokeMethod(codec, "decode", mockContext, buffer, outList);
RiakMessage message = (RiakMessage) outList.get(0);
assertEquals(code, message.getCode());
assertArrayEquals(data, message.getData());
}