String text = (
"Mary had a little lamb;\n" +
"Its fleece was white as snow.\n" +
"And everywhere that Mary went,\n" +
"The lamb was sure to go.");
EventDriver eventDriver = new WordNGramEventDriver();
eventDriver.setParameter("N", 3);
EventSet sampleEventSet = eventDriver.createEventSet(text.toCharArray());
EventSet expectedEventSet = new EventSet();
Vector<Event> tmp = new Vector<Event>();
tmp.add(new Event("[Mary, had, a]", eventDriver));
tmp.add(new Event("[had, a, little]", eventDriver));
tmp.add(new Event("[a, little, lamb;]", eventDriver));