* Test a Cancel message with more than one cancelId
*/
@Test
public void testDecodeCancelMoreThanOneCancelId()
{
Asn1Decoder cancelDecoder = new CancelDecoder();
ByteBuffer stream = ByteBuffer.allocate( 0x08 );
stream.put( new byte[]
{
0x30, 0x06,
0x02, 0x01, 0x01,
0x02, 0x01, 0x02
} ).flip();
// Allocate a Cancel Container
Asn1Container cancelContainer = new CancelContainer();
// Decode a Cancel message
try
{
cancelDecoder.decode( stream, cancelContainer );
fail( "CancelID expected" );
}
catch ( DecoderException de )
{
assertTrue( true );