catch ( DecoderException de )
{
fail( de.getMessage() );
}
EncTgsRepPart encTgsRepPart = encTgsRepPartContainer.getEncTgsRepPart();
// Check the encoding
int length = encTgsRepPart.computeLength();
// Check the length
assertEquals( 0xA2, length );
// Check the encoding
ByteBuffer encodedPdu = ByteBuffer.allocate( length );
try
{
encodedPdu = encTgsRepPart.encode( encodedPdu );
// Check the length
assertEquals( 0xA2, encodedPdu.limit() );
}
catch ( EncoderException ee )