* Test of segment method, of class ThresholdSegmentation.
*/
@Test
public void testSegment_byParticipant() {
System.out.println("segment_byParticipant");
MessageSet messages = new MessageSet();
messages.add(new Message(0, new Date(), "Alice", "it's"));
messages.add(new Message(1, new Date(), "Bob", "cow"));
messages.add(new Message(2, new Date(), "Alice", "time"));
messages.add(new Message(3, new Date(), "Bob", "noooooooo"));
messages.add(new Message(4, new Date(), "Bob", "once"));
messages.add(new Message(5, new Date(), "Alice", "upon"));
messages.add(new Message(6, new Date(), "Bob", "a"));
messages.add(new Message(7, new Date(), "Alice", "time"));
ThresholdSegmentation instance = new ThresholdSegmentation(30, true);
SegmentSet segments = instance.segment(messages);
//Expecting 2 segments, one for each participant