* Test EventHistogram
*/
public class EventHistogramTest {
@Test
public void testProcess() {
EventHistogram hist = new EventHistogram();
hist.add(new Event("B", null));
hist.add(new Event("B", null));
hist.add(new Event("B", null));
hist.add(new Event("B", null));
hist.add(new Event("B", null));
hist.add(new Event("Z", null));
hist.add(new Event("Z", null));
hist.add(new Event("Z", null));
hist.add(new Event("Z", null));
hist.add(new Event("A", null));
hist.add(new Event("A", null));
hist.add(new Event("A", null));
hist.add(new Event("N", null));
hist.add(new Event("N", null));
hist.add(new Event("I", null));
List<Pair<Event, Integer> > list = hist.getSortedHistogram();
System.out.println(list.get(0));
assertTrue(list.get(4).equals(new Pair<Event, Integer>(new Event("I", null), 1)));
assertTrue(list.get(3).equals(new Pair<Event, Integer>(new Event("N", null), 2)));