@Test
public void testWithStateEvent() {

    StreamEvent[] streamEvents1 =
            { createStreamEvent("Hp", 210.45, 23),
                    createStreamEvent("Apple", 3500.50, 10),
                    createStreamEvent("Dell", 245.95, 78) };
    //TODO 3.0.0-snapshot
    //addStateEvent(new StateEvent(streamEvents1), 3);
    Assert.assertTrue(window.find("price", 1000.55).isEmpty());
    Assert.assertFalse(window.find("price", 3500.50).isEmpty());
    StreamEvent[] streamEvents2 =
            { createStreamEvent("Toshiba", 234.45, 24),
                    createStreamEvent("Dell", 456.45, 80),
                    createStreamEvent("Hp", 875.98, 70),
                    createStreamEvent("Hp", 223.87, 190),
                    createStreamEvent("Apple", 356.97, 76) };
    //addStateEvent(new StateEvent(streamEvents2), 5);
    Assert.assertFalse(window.find("price", 3500.50).isEmpty());
    StreamEvent[] streamEvents3 =
            { createStreamEvent("Hp", 678.87, 65),
                    createStreamEvent("Toshiba", 235.95, 19),
                    createStreamEvent("Dell", 879.25, 57),
                    createStreamEvent("Hp", 345.45, 19),
                    createStreamEvent("Hp", 879.76, 86),
                    createStreamEvent("Apple", 719.82, 29),
                    createStreamEvent("Hp", 985.30, 112) };
    //addStateEvent(new StateEvent(streamEvents3), 7);
    Assert.assertTrue(window.find("price", 3500.50).isEmpty());
}