de.printStackTrace();
fail( de.getMessage() );
}
ETypeInfoEntry etypeInforEntry = container.getETypeInfoEntry();
assertEquals( EncryptionType.DES3_CBC_MD5, etypeInforEntry.getEType() );
assertTrue( Arrays.equals( Strings.getBytesUtf8( "1234" ), etypeInforEntry.getSalt() ) );
ByteBuffer bb = ByteBuffer.allocate( etypeInforEntry.computeLength() );
try
{
bb = etypeInforEntry.encode( bb );
// Check the length
assertEquals( 0x0F, bb.limit() );
String encodedPdu = Strings.dumpBytes( bb.array() );