                 index++;
             }
         }
+
+        [Test]
+        public function testSerialize():void
+        {
+            var s:Stream = $(1, 2, 3);
+            var b:ByteArray = new ByteArray();
+            b.writeObject(s);
+            b.position = 0;
+            var r:Stream = b.readObject();
+
+            for (var i:int = 0; i < s.length; i++)
+            {
+                assertEquals(s[i], r[i]);
+            }
+        }
     }
 }

        {
            assertEquals($(1, 2).skip(1).first, 2);
            assertEquals($(1, 2).skip(1).length, 1);
        }

        [Test]

    import com.kemsky.impl.filters.eq;
    import com.kemsky.impl.filters.ge;
    import com.kemsky.impl.filters.gt;
    import com.kemsky.impl.filters.le;
    import com.kemsky.impl.filters.lt;
    import com.kemsky.impl.filters.prop;
    import com.kemsky.impl.filters.subtract;

    import flash.utils.ByteArray;

    import flash.utils.Dictionary;

    import flashx.textLayout.debug.assert;

    import mx.collections.ArrayCollection;
    import mx.logging.ILogger;
