public void event_filter_is_parsed_correctly()
        {
            var config = new PersistentSubscriptionConfig();

            config.Updated   = new DateTime(2014, 08, 14);
            config.UpdatedBy = "admin";
            config.Version   = "1";

            var filter = EventFilter.StreamName.Prefixes(true, "test", "blah");
            var entry  = new PersistentSubscriptionEntry {
                Group  = "foo",
                Stream = "$all",
                Filter = EventFilter.ParseToDto(filter)
            };

            config.Entries = new List <PersistentSubscriptionEntry> {
                entry
            };
            var data         = config.GetSerializedForm();
            var config2      = PersistentSubscriptionConfig.FromSerializedForm(data);
            var newFilterDto = config2.Entries[0].Filter;

            var(success, reason) = EventFilter.TryParse(newFilterDto, out var newFilter);
            Assert.AreEqual(1, config2.Entries.Count);
            Assert.IsTrue(success);
            Assert.AreEqual(filter.ToString(), newFilter.ToString());
        }