@Test
public void testPadding() throws IOException
{
byte[] b = { 13 };
AVP<byte[]> avp = new AVP<byte[]>(Cx.INTEGRITY_KEY, b);
Buffer buffer = new ByteArrayBuffer(64);
for (int i = 0; i < 64; i++)
buffer.put((byte) 44);
buffer.setPutIndex(0);
Codecs.__avp.encode(buffer, avp);
View view = new View(buffer);
view.setGetIndex(view.putIndex() - 3);
for (int i = 0; i < 3; i++)
assertEquals(0, view.get());