{ 0x04, 0x03, 'R', 'S', 'A' } );
String decodedPdu = Strings.dumpBytes( bb.array() );
bb.flip();
CertGenerationContainer container = new CertGenerationContainer();
try
{
decoder.decode( bb, container );
}
catch ( DecoderException e )
{
fail( e.getMessage() );
}
CertGenerationRequestDecorator req = new CertGenerationRequestDecorator(
LdapApiServiceFactory.getSingleton(), new CertGenerationRequestImpl() );
req = container.getCertGenerationObject();
assertEquals( dn, req.getTargetDN() );
assertEquals( dn, req.getIssuerDN() );
assertEquals( dn, req.getSubjectDN() );
assertEquals( keyAlgo, req.getKeyAlgorithm() );