@Test
public void testStreamSummary() {

    ConcurrentStreamSummary<String> vs = new ConcurrentStreamSummary<String>(3);
    String[] stream = {"X", "X", "Y", "Z", "A", "B", "C", "X", "X", "A", "A", "A"};
    for (String i : stream)
    {
            vs.add(i);
            /*
    for(String s : vs.poll(3))
    System.out.print(s+" ");
             */
            System.out.println(vs);
    }
}