cancelRequestValue ::= SEQUENCE { cancelID MessageID -- MessageID is as defined in [RFC2251] }
818283848586878889909192939495969798
{ de.printStackTrace(); fail( de.getMessage() ); } Cancel cancel = ( ( CancelContainer ) cancelContainer ).getCancel(); assertEquals( 1, cancel.getCancelId() ); // Check the encoding try { ByteBuffer bb = cancel.encode(); String encodedPdu = Strings.dumpBytes( bb.array() ); assertEquals( encodedPdu, decodedPdu ); }