Capture<EncryptStepContextParams> encodedValue = new Capture<EncryptStepContextParams>();
encContext.addParameters( EasyMock.capture( encodedValue ) );
EasyMock.replay( gatewayServices, as, encEnvironment, encContext );
EncryptUriDescriptor descriptor = new EncryptUriDescriptor();
descriptor.setTemplate( "{host}:{port}" );
descriptor.setParam( encryptedValueParamName );
EncryptUriProcessor processor = new EncryptUriProcessor();
processor.initialize( encEnvironment, descriptor );
UrlRewriteStepStatus encStatus = processor.process( encContext );
assertThat( encStatus, is ( UrlRewriteStepStatus.SUCCESS ) );