public void PopTokenBuilder_Build_EhtsKeyValueMap_GreaterThan100_Test()
        {
            // Arrange
            var popTokenBuilder        = new PopTokenBuilder(audience, issuer);
            var keyValuePairDictionary = new Dictionary <string, string>();

            for (var i = 0; i < 101; i++)                                      // Create 101 key value pairs
            {
                keyValuePairDictionary.Add(popTokenBuilder.GetUniqueIdentifier(), popTokenBuilder.GetUniqueIdentifier());
            }

            var ehtsKeyValueMap = HashMapKeyValuePair.Set <string, string>(keyValuePairDictionary);

            // Act
            popTokenBuilder.SetEhtsKeyValueMap(ehtsKeyValueMap)
            .SignWith(privateKeyXmlRsa)
            .Build();
            // Assert
            // Expected: PopTokenBuilderException
        }
        public void PopTokenBuilder_Build_Both_RsaSecurityKey_privateKeyXmlRsa_Null_Test()
        {
            // Arrange
            var popTokenBuilder        = new PopTokenBuilder(audience, issuer);
            var keyValuePairDictionary = new Dictionary <string, string>();

            for (var i = 0; i < 100; i++)
            {
                keyValuePairDictionary.Add(popTokenBuilder.GetUniqueIdentifier(), popTokenBuilder.GetUniqueIdentifier());
            }
            var ehtsKeyValueMap = HashMapKeyValuePair.Set <string, string>(keyValuePairDictionary);

            _privateRsaKeyPem = null;                                            // privateKeyXmlRsa is null

            // Act
            popTokenBuilder.SetEhtsKeyValueMap(ehtsKeyValueMap)
            .SignWith(_privateRsaKeyPem)
            .Build();
            // Assert
            // Expected: PopTokenBuilderException
        }