for (int i = 24; i < 256; i++)
{
Buffer buffer = new ByteArrayBuffer(i);
buffer = Codecs.__message.encode(buffer, answer);
// System.out.println(buffer.putIndex() + " / " + i);
DiameterMessage message = Codecs.__message.decode(buffer);
// System.out.println(message);
assertFalse(message.isRequest());
assertEquals(answer.getEndToEndId(), message.getEndToEndId());
assertEquals(answer.getHopByHopId(), message.getHopByHopId());
assertEquals(Sh.UDA, message.getCommand());
assertEquals(Common.DIAMETER_SUCCESS.getCode(), message.get(Common.RESULT_CODE).intValue());
assertEquals(InetAddress.getLocalHost(), message.get(Common.HOST_IP_ADDRESS));
assertEquals("<shData>dasaiTag<shData>", new String(message.get(Sh.USER_DATA)));
}
}