public void FromFieldPattern()
        {
            IPattern pattern = new FieldPattern { Name = "Description", Pattern = @"CNT(""[\d{4,9}]"")" };
            var result = _toModel.Convert(ToAccountIdentifier(pattern));

            ValidateSimplePattern(result, "Field", @"{""Name"":""Description"",""Pattern"":""CNT(\""[\\d{4,9}]\"")""}");
        }
 private Documents.Pattern ToPattern(FieldPattern pattern)
 {
     return new Pattern
     {
         Name = "Field",
         Properties =
             {
                 {"Name", pattern.Name},
                 {"Pattern", pattern.Pattern},
             }
     };
 }