public void ThenResolverGetsAgreementRefWithPModeId()
            {
                // Arrange
                SendingProcessingMode pmode = CreateSendingPMode(includePMode: true);

                // Act
                AS4.Model.Core.AgreementReference agreementRef = SendingPModeMap.ResolveAgreementReference(pmode).UnsafeGet;

                // Assert
                AgreementReference pmodeRef = pmode.MessagePackaging.CollaborationInfo.AgreementReference;

                Assert.Equal(pmodeRef.Value, agreementRef.Value);
                Assert.Equal(Maybe.Just(pmodeRef.Type), agreementRef.Type);
                Assert.Equal(Maybe.Just(pmode.Id), agreementRef.PModeId);
            }
 /// <summary>
 /// Initializes a new instance of the <see cref="CollaborationInfo"/> class.
 /// </summary>
 public CollaborationInfo()
 {
     AgreementReference = new AgreementReference();
     Service            = new Service();
 }